mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 05:58:30 +00:00
SM0 skip
This commit is contained in:
parent
a7b3c95e30
commit
a9043f142b
1 changed files with 11 additions and 3 deletions
|
@ -16,10 +16,8 @@ var Vector2 = require('../math/Vector2');
|
|||
|
||||
/**
|
||||
* @classdesc
|
||||
* TODO
|
||||
*
|
||||
* 1) autoCenter when canvas is BIGGER than the viewport should be negative, i.e. when mode is envelop.
|
||||
* 2) If initial canvas size > parent size, it gets an inversed aspect ratio
|
||||
* TODO
|
||||
*
|
||||
* @class ScaleManager
|
||||
* @memberof Phaser.DOM
|
||||
|
@ -154,6 +152,11 @@ var ScaleManager = new Class({
|
|||
this.startListeners();
|
||||
|
||||
this.refresh();
|
||||
|
||||
console.log('boot');
|
||||
console.log(this.gameSize.toString());
|
||||
console.log(this.baseSize.toString());
|
||||
console.log(this.displaySize.toString());
|
||||
},
|
||||
|
||||
parseConfig: function (config)
|
||||
|
@ -573,6 +576,11 @@ var ScaleManager = new Class({
|
|||
|
||||
step: function (time, delta)
|
||||
{
|
||||
if (this.scaleMode === 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this._lastCheck += delta;
|
||||
|
||||
if (this.dirty || this._lastCheck > this.resizeInterval)
|
||||
|
|
Loading…
Add table
Reference in a new issue