Phaser API Documentation

step(time, delta)


A single game step. Called automatically by the Scene Manager as a result of a Request Animation Frame or Set Timeout call to the main Game instance.


name type description
time number

The time value from the most recent Game step. Typically a high-resolution timer value, or

delta number

The delta value since the last frame. This is smoothed to avoid delta spikes by the TimeStep class.

Since: 3.0.0
Source: src/scene/Systems.js (Line 344)