Phaser API Documentation

  Version: 
wake([seamless])

Description:

Wakes-up the TimeStep, restarting Request Animation Frame (or SetTimeout) and toggling the running flag to true. The seamless argument controls if the wake-up should adjust the start time or not.

Parameters:

name type arguments Default description
seamless boolean <optional> false

Adjust the startTime based on the lastTime values.

Since: 3.0.0
Source: src/core/TimeStep.js (Line 634)