ScaleManager#scaleMode

scaleMode : integer

The scaling method used by the ScaleManager when not in fullscreen.

Phaser.ScaleManager.NO_SCALE

The Game display area will not be scaled - even if it is too large for the canvas/screen.
This mode ignores any applied scaling factor and displays the canvas at the Game size.
Phaser.ScaleManager.EXACT_FIT

The Game display area will be stretched to fill the entire size of the canvas's parent element and/or screen.
Proportions are not maintained.
Phaser.ScaleManager.SHOW_ALL

Show the entire game display area while maintaining the original aspect ratio.
Phaser.ScaleManager.RESIZE

The dimensions of the game display area are changed to match the size of the parent container.
That is, this mode changes the Game size to match the display size.


Any manually set Game size (see setGameSize) is ignored while in effect.

Phaser.ScaleManager.USER_SCALE

The game Display is scaled according to the user-specified scale set by setUserScale.


This scale can be adjusted in the resize callback
for flexible custom-sizing needs.

Source code: core/ScaleManager.js (Line 2119)
doc_phaser
2017-02-14 11:09:15
Comments
Leave a Comment

Please login to continue.