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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.