11 releases (7 breaking)

0.15.0 Feb 27, 2024
0.14.0 Nov 10, 2023
0.13.0 Jul 28, 2023
0.12.0 Mar 30, 2023
0.1.3 Jan 17, 2022

#174 in Game dev

Download history 27/week @ 2023-12-22 46/week @ 2023-12-29 42/week @ 2024-01-05 53/week @ 2024-01-12 26/week @ 2024-01-19 33/week @ 2024-01-26 29/week @ 2024-02-02 72/week @ 2024-02-09 148/week @ 2024-02-16 322/week @ 2024-02-23 149/week @ 2024-03-01 172/week @ 2024-03-08 102/week @ 2024-03-15 141/week @ 2024-03-22 193/week @ 2024-03-29 54/week @ 2024-04-05

508 downloads per month
Used in bevy_roll_safe

MIT/Apache

195KB
1.5K SLoC

GGRS LOGO

crates.io GitHub Workflow Status

Bevy GGRS

Bevy plugin for the GGRS P2P rollback networking library. The plugin creates a custom stage with a separate schedule, which handles correctly advancing the gamestate, including rollbacks. It efficiently handles saving and loading of the gamestate by only snapshotting relevant parts of the world, as defined by the user. It is supposed to work with the latest released version of bevy.

For explanation on how to use it, check the 👉examples!

Live Demonstration (currently offline)

bevy_GGRS has a demo app you can try in the browser! It uses matchbox to facilitate communication between browsers. Try it out with a friend! Just click the link and match with another player! (You can also open the link in two separate windows to play against yourself)

Compatible Versions

bevy bevy_ggrs ggrs
0.13 main main
0.13 0.15 0.10.1
0.12 0.14 0.10
0.11 0.13 0.9.4
0.10 0.12 0.9.4
0.9 0.11 0.9.3
0.8 0.10 0.9
0.6 0.9 0.9

Thanks

to bevy_backroll and bevy_rollback for figuring out pieces of the puzzle that made bevy_GGRS possible. Special thanks to the helpful folks in the bevy discord, providing useful help and pointers all over the place.

Licensing

Bevy_GGRS is dual-licensed under either

at your option.

Dependencies

~17–48MB
~752K SLoC