7 releases

new 0.0.17-dev Oct 24, 2024
0.0.16 Oct 22, 2024
0.0.12-dev Sep 23, 2024

#738 in Game dev

Download history 364/week @ 2024-09-23 34/week @ 2024-09-30 1/week @ 2024-10-07 171/week @ 2024-10-14 673/week @ 2024-10-21

886 downloads per month
Used in 8 crates (5 directly)

MIT license

50KB
1K SLoC

🌀 Nimble Protocol

Crates.io Documentation

Nimble Protocol is a lightweight, deterministic simulation protocol designed for networked games. It supports connecting clients to a host, downloading game state, and synchronizing predicted inputs (steps) with authoritative decisions. The protocol ensures that all participants in a game session stay in sync by sending and receiving the necessary messages. 🕹ī¸

✨ Features

  • Version Support: Ensures compatibility by checking the deterministic simulation version during connection.
  • Download Game State: Clients can request a full download of the game state to stay in sync.
  • Participants Management: Add or remove participants from the game.
  • Step Synchronization: Send predicted inputs (called steps) and receive authoritative steps from the host.

đŸ“Ļ Installation

Add nimble-protocol to your Cargo.toml:

[dependencies]
nimble-protocol = "0.0.17-dev"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Dependencies

~220KB