1 unstable release

0.1.0 Mar 5, 2024

#1213 in Game dev

Download history 149/week @ 2024-03-01 66/week @ 2024-03-08 25/week @ 2024-03-15 28/week @ 2024-03-22 63/week @ 2024-03-29 25/week @ 2024-04-05

144 downloads per month
Used in bevy_replicon_snap

MIT/Apache

250KB
4K SLoC

Bevy Replicon

crates.io docs.rs codecov

ECS-focused high-level networking crate for the Bevy game engine.

Features

  • Automatic component-oriented world state replication.
  • Events-based messaging API with different guarantees (reliable, reliable unordered, and unreliable).
  • Control over client visibility of entities and events.
  • Replication into scene to save server state.
  • Support for client and server both in one App and in separate.
  • Customizable serialization and deserialization even for types that don't implement serde traits (like Box<dyn Reflect>).
  • No builtin I/O. Use it with any messaging library. We provide a first-party integration with renet via bevy_replicon_renet.
  • API focused on writing logic once that automatically works for singleplayer, client, server, and listen server (when server is also a player).

Prediction and interpolation are not implemented in this crate and are considered out of scope. But the idea of the crate is to provide an extensible core, so if your game needs something, you can implement it on top. Also check out related crates.

Getting Started

Check out the quick start guide.

See also examples.

  • bevy_replicon_snap - adds snapshot interpolation and client-side prediction.
  • bevy_replicon_attributes - adds ergonomic visibility control through client attributes and entity/event visibility conditions. An extension of this crate's raw client visibility API.
  • bevy_replicon_repair - preserves replicated client state across reconnects.
  • bevy_timewarp - a rollback library that buffers component state. See this instruction about how to integrate.

Bevy compatibility

bevy bevy_replicon bevy_replicon_renet
0.13.0 0.23-0.24 0.1
0.12.1 0.18-0.22
0.11.0 0.6-0.17
0.10.1 0.2-0.6
0.10.0 0.1

Dependencies

~20–59MB
~1M SLoC