Phaser API Documentation


Member of: Phaser.Game

headlessStep(time, delta)


A special version of the Game Step for the HEADLESS renderer only.

The main Game Step. Called automatically by the Time Step, once per browser frame (typically as a result of Request Animation Frame, or Set Timeout on very old browsers.)

The step will update the global managers first, then proceed to update each Scene in turn, via the Scene Manager.

This process emits prerender and postrender events, even though nothing actually displays.


name type description
time number

The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or if using SetTimeout.

delta number

The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.

Since: 3.2.0
Source: src/core/Game.js (Line 502)