docs.rs failed to build bevy_veilid-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
bevy_veilid-0.4.0
bevy_veilid
Build 2-Player turn-based p2p games with Bevy and Veilid
This plugin makes it bearable to build p2p games with Bevy and Veilid by providing a sane API for encrypted p2p messanging in Bevy context.
https://github.com/stillonearth/bevy_veilid/assets/97428129/4c505eef-1dee-4ab4-b0e7-51262a3b3337
Compatibility
| bevy version | veilid version | bevy_veilid version |
|---|---|---|
| 0.11 | 0.2.4 | 0.1.0 |
| 0.11 | 0.2.5 | 0.1.2 |
📝Features
- Event-Based: read and send event to communicate with other peer
- Turn-Based: no tick synchronization
- Anonymous: each run creates a new persona
👩💻 Usage
Refer to examples/pingpong for basic example.
1. Define a message to send over network
2. Attach plugin to bevy
3. Connect to systems
Events
- EventConnectedPeer
- EventError
- EventAwaitingPeer
- EventVeilidInitialized
- EventReceiveMessage
- EventSendMessage
- EventMessageSent
Resources
bevy_veilid will inject this into bevy
💻 Under the hood
A full veilid instance will run in background with settings defined in veilid_duplex.
veilid_duplex manages veilid internals and provides an API to send a message to another peer by refering each other with dht_keys unique for each run.