lucaspoffo / renet

Server/Client network library for multiplayer games with authentication and connection management made with Rust
Apache License 2.0
620 stars 65 forks source link

Fix the Bevy Renet example! #110

Closed Oglo12 closed 9 months ago

Oglo12 commented 9 months ago

The Bevy Renet example doesn't compile! I would love it if you showed what the Cargo.toml should look like, and fix the thing where you try to import renet::ClientId, but that doesn't exist!

SwordOfDamocles commented 9 months ago

Yeah, I'd like to second this issue...Super-stoked about using Renet for my project, but I was trying to work my way through the examples in the root README.md, as well as the demos, and there seem to be quite a few things that are out of date now.

I was able to work through most of the echo.rs example, but I've gotten stuck on the ClientId import as well...

lucaspoffo commented 9 months ago

If you are using the the last released version you can get the correct examples in: https://github.com/lucaspoffo/renet/tree/0.0.13

The examples in the main branch requires to use the last commit to compile. Also the README in main need to be updated