new RequestAnimationFrame(game, forceSetTimeOut)
Abstracts away the use of RAF or setTimeOut for the core game update loop.
Parameters
| Name | Type | Argument | Default | Description | 
|---|---|---|---|---|
game |  Phaser.Game | A reference to the currently running game.  |  ||
forceSetTimeOut |  boolean |  <optional> |  false | Tell Phaser to use setTimeOut even if raf is available.  |  
- Source code: utils/RequestAnimationFrame.js (Line 15)
 
Please login to continue.