Skip to content

Commit 17de8fd

Browse files
committed
ScaleManager updates and fixes
Conflicts: src/core/ScaleManager.js
2 parents d629788 + 910627d commit 17de8fd

2 files changed

Lines changed: 633 additions & 345 deletions

File tree

src/core/Game.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,23 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
4545
this.parent = '';
4646

4747
/**
48-
* @property {number} width - The calculated game width in pixels.
48+
* The current Game Width in pixels.
49+
*
50+
* _Do not modify this property directly:_ use {@link Phaser.ScaleManager#setGameSize} - eg. `game.scale.setGameSize(width, height)` - instead.
51+
*
52+
* @property {integer} width
53+
* @readonly
4954
* @default
5055
*/
5156
this.width = 800;
5257

5358
/**
54-
* @property {number} height - The calculated game height in pixels.
59+
* The current Game Height in pixels.
60+
*
61+
* _Do not modify this property directly:_ use {@link Phaser.ScaleManager#setGameSize} - eg. `game.scale.setGameSize(width, height)` - instead.
62+
*
63+
* @property {integer} height
64+
* @readonly
5565
* @default
5666
*/
5767
this.height = 600;

0 commit comments

Comments
 (0)