8 releases

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

#2342 in Game dev

50 downloads per month
Used in 8 crates

MIT license

8KB
66 lines

🎮 nimble-sample-step

Crates.io Documentation

This crate provides an example Step implementation to use in tests or for other similar purposes. It's built with flexibility and simplicity in mind, giving you basic game-pad-like inputs such as moving left, right, jumping, or doing nothing.

✨ Features

  • 🚶 MoveLeft(i16): Move your character to the left with a specified amount.
  • 🏃 MoveRight(i16): Move your character to the right.
  • 🦘 Jump: Make your character jump.
  • ⛔ Nothing: No game-pad input.
  • 🗃️ SampleState: A simple state structure to simulate stateful deserialization with a buffer of data.

These actions are ready for you to plug into your test cases!

📦 Installation

Add the following to your Cargo.toml file:

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

License

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

Dependencies

~130KB