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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
headlessGame |
HeadlessGame |
seconds |
number |
Returns
Section titled “Returns”void