Stage#disableVisibilityChange

disableVisibilityChange : boolean

By default if the browser tab loses focus the game will pause.
You can stop that behavior by setting this property to true.
Note that the browser can still elect to pause your game if it wishes to do so,
for example swapping to another browser tab. This will cause the RAF callback to halt,
effectively pausing your game, even though no in-game pause event is triggered if you enable this property.

Source code: core/Stage.js (Line 40)
doc_phaser
2017-02-14 11:12:42
Comments
Leave a Comment

Please login to continue.