#game-ai #beetmash #behavior

nightly beetmash_net

A lightweight Bevy replication library

7 releases

new 0.0.6-rc.7 Oct 13, 2024
0.0.6-rc.6 Oct 9, 2024
0.0.6-rc.5 Sep 13, 2024
0.0.6-rc.2 Jul 28, 2024

#138 in Robotics

Download history 321/week @ 2024-07-26 25/week @ 2024-08-02 9/week @ 2024-08-09 3/week @ 2024-08-16 5/week @ 2024-08-23 6/week @ 2024-08-30 237/week @ 2024-09-06 212/week @ 2024-09-13 45/week @ 2024-09-20 36/week @ 2024-09-27 164/week @ 2024-10-04 284/week @ 2024-10-11

535 downloads per month

MIT/Apache

65KB
2K SLoC

beetmash_net

This is a very tiny and simple replication library that can run on microcontrollers and be used for DOM communication.

Features

Incoming / Outgoing

Components, Events and Resources can be specified as incoming or outgoing. Components can be both because the Replicate component can be used to distinguish who should be doing the sending.

Multiple transports

For instance a web bevy app can send serde_json messages to the dom and bincode messages to the server

Limitations

  • Components must be registered in the same order for every client
  • Partial changes: on component or resource changes, the entire type is sent and applied
  • Messages are not cached, if a client joins late it misses previous messages
  • No authority determination
  • Unidirectional Resources/Events: resources and events cannot be registered as both incoming and outgoing

References

Dependencies

~38–51MB
~842K SLoC