Game object
State
JSON-compatible data only: no functions, canvases or connections. init and step have no side effects and never mutate the previous state.
Time
step runs at 60Hz, dt = 1/60.
| Value | Meaning |
|---|---|
world.time | seconds from completed ticks |
world.tick | completed ticks |
world.seed | seed, default 1 |
world.caps | save / shared / room / ai, all false |
Player (standalone HTML only)
One player per canvas. Call stop() before removing the canvas.
Headless
Same seed and inputs give the same result.