Skip to content

Commit 274f52f

Browse files
committed
dry mobile template
1 parent 027725e commit 274f52f

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

  • resources/Project Templates/Full Screen Mobile/src

resources/Project Templates/Full Screen Mobile/src/Boot.js

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,13 @@ BasicGame.Boot.prototype = {
2020

2121
this.input.maxPointers = 1;
2222
this.stage.disableVisibilityChange = true;
23+
this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
24+
this.scale.setMinMax(480, 260, 1024, 768);
25+
this.scale.pageAlignHorizontally = true;
26+
this.scale.pageAlignVertically = true;
2327

24-
if (this.game.device.desktop)
28+
if (!this.game.device.desktop)
2529
{
26-
this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
27-
this.scale.setMinMax(480, 260, 1024, 768);
28-
this.scale.pageAlignHorizontally = true;
29-
this.scale.pageAlignVertically = true;
30-
}
31-
else
32-
{
33-
this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
34-
this.scale.setMinMax(480, 260, 1024, 768);
35-
this.scale.pageAlignHorizontally = true;
36-
this.scale.pageAlignVertically = true;
3730
this.scale.forceOrientation(true, false);
3831
this.scale.setResizeCallback(this.gameResized, this);
3932
this.scale.enterIncorrectOrientation.add(this.enterIncorrectOrientation, this);
@@ -80,4 +73,4 @@ BasicGame.Boot.prototype = {
8073

8174
}
8275

83-
};
76+
};

0 commit comments

Comments
 (0)