The Scale Manager has successfully entered fullscreen mode.
The Scale Manager tried to enter fullscreen mode but failed.
The Scale Manager tried to enter fullscreen mode, but it is unsupported by the browser.
The Scale Manager was in fullscreen mode, but has since left, either directly via game code, or via a user gestured, such as pressing the ESC key.
The Scale Manager Orientation Change Event.
This event is dispatched whenever the Scale Manager detects an orientation change event from the browser.
name | type | description |
---|---|---|
orientation | string |
The new orientation value. Either |
The Scale Manager Resize Event.
This event is dispatched whenever the Scale Manager detects a resize event from the browser.
It sends three parameters to the callback, each of them being Size components. You can read
the width
, height
, aspectRatio
and other properties of these components to help with
scaling your own game content.
name | type | description |
---|---|---|
gameSize | Phaser.Structs.Size |
A reference to the Game Size component. This is the un-scaled size of your game canvas. |
baseSize | Phaser.Structs.Size |
A reference to the Base Size component. This is the game size. |
displaySize | Phaser.Structs.Size |
A reference to the Display Size component. This is the scaled canvas size, after applying zoom and scale mode. |
previousWidth | number |
If the |
previousHeight | number |
If the |