nimble-sample-game

Crates.ionimble-sample-game
lib.rsnimble-sample-game
version0.0.17-dev
sourcesrc
created_at2024-09-23 14:30:35.558727
updated_at2024-10-24 10:28:19.460567
descriptionNimble Sample Game Types
homepage
repositoryhttps://github.com/nimble-rust/nimble
max_upload_size
id1384161
size9,154
Peter Bjorklund (piot)

documentation

README

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.

Commit count: 151

cargo fmt