Skip to content

A game you can step, inspect, and rewind.

Give your Bevy simulation an explicit control loop. Apply an action, advance a tick, and see what changed. Save a state and try a different decision.

Bevy 0.18.1Rust 1.91+Experimental 0.0.4

Try the control loopCounter
Simulation tick
0
SnapshotNot saved
{
  "tick": 0,
  "observation": {
    "kind": "Domain",
    "value": { "count": 0 }
  }
}

Step twice, save, step again, then restore.

A simplified walkthrough. Run the Rust example for a real Bevy environment.

Concept illustration of a platformer simulation advancing through saved states and branching into two possible futures.
One saved state, several possible futures. A conceptual illustration of controlled simulation.

Start small. Then bring your game.

One runnable counter teaches the same contract used by the full platformer.

1

Run a complete example

Copy a small Rust app. Reset, step, save a snapshot, and verify a replay.

Getting started
2

Define your game contract

Declare actions, expose observations, and register the state that affects gameplay.

Game integration
3

Drive it from a client

Use Rust, the CLI, Python, or JSON-RPC to inspect and control the same environment.

Remote control

Find the next piece

The guides explain how to use the system. The reference explains its contracts.

Released under MIT or Apache-2.0.