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)
Please login to continue.