mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 01:38:23 +00:00
ScaleManager updates and fixes
Conflicts: src/core/ScaleManager.js
This commit is contained in:
commit
17de8fdcae
2 changed files with 642 additions and 354 deletions
|
@ -45,13 +45,23 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
|
|||
this.parent = '';
|
||||
|
||||
/**
|
||||
* @property {number} width - The calculated game width in pixels.
|
||||
* The current Game Width in pixels.
|
||||
*
|
||||
* _Do not modify this property directly:_ use {@link Phaser.ScaleManager#setGameSize} - eg. `game.scale.setGameSize(width, height)` - instead.
|
||||
*
|
||||
* @property {integer} width
|
||||
* @readonly
|
||||
* @default
|
||||
*/
|
||||
this.width = 800;
|
||||
|
||||
/**
|
||||
* @property {number} height - The calculated game height in pixels.
|
||||
* The current Game Height in pixels.
|
||||
*
|
||||
* _Do not modify this property directly:_ use {@link Phaser.ScaleManager#setGameSize} - eg. `game.scale.setGameSize(width, height)` - instead.
|
||||
*
|
||||
* @property {integer} height
|
||||
* @readonly
|
||||
* @default
|
||||
*/
|
||||
this.height = 600;
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue