6 releases

0.0.17-dev Oct 24, 2024
0.0.16 Oct 22, 2024
0.0.15-dev Oct 21, 2024
0.0.14-dev Oct 16, 2024
0.0.12-dev Sep 23, 2024

#2387 in Game dev

Download history 107/week @ 2024-09-17 75/week @ 2024-09-24 14/week @ 2024-10-01 1/week @ 2024-10-08 252/week @ 2024-10-15 479/week @ 2024-10-22 8/week @ 2024-10-29 9/week @ 2024-11-05

748 downloads per month
Used in 2 crates

MIT license

44KB
611 lines

Nimble Sample Game

Crates.io Documentation

nimble-sample-game provides a simple example of a deterministic game simulation and game state for use in testing. It demonstrates how to handle authoritative and predicted game states, apply player input (steps), and integrate with the nimble crates for deterministic simulation.

✨ Features

  • Supports both predicted and authoritative game state management.
  • Example steps for player input such as moving left, right, and jumping.
  • Serializes and deserializes the game state for network transmission.
  • Provides callbacks for predicted (seer), authoritative (assent), and reconciliation (rectify) game loops.

📦 Installation

To use this crate, add the following to your Cargo.toml:

[dependencies]
nimble-sample-game = "0.0.17-dev"

License

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

Dependencies

~155KB