ScaleManager#ScaleManager

new ScaleManager(game, width, height)

Create a new ScaleManager object - this is done automatically by Phaser.Game

The width and height constructor parameters can either be a number which represents pixels or a string that represents a percentage: e.g. 800 (for 800 pixels) or "80%" for 80%.

Parameters
Name Type Description
game Phaser.Game

A reference to the currently running game.

width number | string

The width of the game. See above.

height number | string

The height of the game. See above.

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

Please login to continue.