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

#2432 in Game dev


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

~160KB