RequestAnimationFrame#RequestAnimationFrame

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)
doc_phaser
2017-02-14 11:07:36
Comments
Leave a Comment

Please login to continue.