2 releases

new 0.0.14-dev Oct 16, 2024
0.0.12-dev Sep 23, 2024

#5 in #nimble

Download history 157/week @ 2024-09-19 33/week @ 2024-09-26 7/week @ 2024-10-03

197 downloads per month
Used in nimble-rust

MIT license

41KB
608 lines

Nimble Sample Game

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.14-dev"

Dependencies

~155KB