Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

TimeState

Property Type Description
running boolean Whether the loop runs: true from its mount until a frame throws or it unmounts. A game’s own frame callback or page event checks it before writing the world anywhere, so a half-stepped world is never saved.
seconds number Simulated seconds since the loop started: the steps, not the wall.
steps number Fixed steps since the loop started.
tickRate number The world’s ticks a second: its room’s, or its game’s declared rate, 30 for a game with a room and 60 for one played alone where it names none. 60 before a game mounts.