Phaser API Documentation

  Version: 
step(time, delta)

Description:

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.

Parameters:

name type description
time number

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

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)