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

stepSeconds

stepSeconds(headlessGame, seconds): void

Advances the world by the whole fixed steps nearest to seconds, on the input last sent. No clock: five seconds is 300 steps at 60 ticks a second however long they take, and 150 at 30.

Parameter Type
headlessGame HeadlessGame
seconds number

void