Skip to content

Commit

Permalink
konodioda
Browse files Browse the repository at this point in the history
  • Loading branch information
SuCicada committed Apr 16, 2020
1 parent e82d870 commit 3c096f6
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/APG/APG-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,14 @@ function someboot() {
// this.x = -game.camera.x;
// this.y = -game.camera.y;
// this.rotation = 0;

if (!(globalConfig.ScaleMode == "EXACT_FIT")) {
game.scale.pageAlignHorizontally = true;
game.scale.pageAlignVertically = true;
}
game.scale.scaleMode = Phaser.ScaleManager[globalConfig.ScaleMode];
}
game.scale.refresh();
PIXI.DisplayObject.prototype.updateTransform.call(this);
}
}
Expand All @@ -211,12 +218,12 @@ function someboot() {
var bootstrap = {
init: function () {

if (!(globalConfig.ScaleMode == "EXACT_FIT")) {
game.scale.pageAlignHorizontally = true;
game.scale.pageAlignVertically = true;
}
game.scale.scaleMode = Phaser.ScaleManager[globalConfig.ScaleMode];
game.scale.refresh();
// if (!(globalConfig.ScaleMode == "EXACT_FIT")) {
// game.scale.pageAlignHorizontally = true;
// game.scale.pageAlignVertically = true;
// }
// game.scale.scaleMode = Phaser.ScaleManager[globalConfig.ScaleMode];
// game.scale.refresh();

// someinit();
someboot();
Expand Down

0 comments on commit 3c096f6

Please sign in to comment.