lucaspoffo / renet

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

Example does not work #33

Closed DogsCodesStudio closed 1 year ago

DogsCodesStudio commented 1 year ago

The simple example doesn't work in bevy example file

    RenetClient::new(current_time, socket, client_id, connection_config, authentication).unwrap()

renet client should be like this having 5 arguments instead of 4.

dennym commented 1 year ago

For the sake of adding also a solution to it and not let everyone figure it out themselfs.... Check the tag 0.0.9 which has a slight different approach. https://github.com/lucaspoffo/renet/blob/0.0.9/demo_bevy/src/bin/client.rs

If you use bevy_renet make sure that you check the example on the correct tag and be prepared that it is going to change.