This is a simple example of how multiplayer can be achieved in bevy using renet. Associated blog article
- https://github.com/lucaspoffo/renet/tree/master/demo_bevy
- https://github.com/lucaspoffo/renet/blob/master/renet/examples/echo.rs
CleanShot.2024-06-09.at.22.53.49-converted.mp4
- Make sure that you have cargo installed:
https://doc.rust-lang.org/cargo/getting-started/installation.html
git clone git@github.com:CuddlyBunion341/bevy-multiplayer
cd bevy-multiplayer
# start the server
cargo run --bin server
# start client (as many as you want)
cargo run --bin client
Optimizations:
# use release target for better performance
cargo run --release --bin server
cargo run --release --bin client
This project is licensed under the MIT license. For more information, please refer to the LICENSE file.