-
Notifications
You must be signed in to change notification settings - Fork 0
/
Boot.js
30 lines (24 loc) · 902 Bytes
/
Boot.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var MonoRun = {};
MonoRun.Boot = function(game) {};
MonoRun.Boot.prototype = {
preload: function() {
this.load.image('preloaderBar', 'images/loader_bar.png');
this.load.image('titleimage', 'images/TitleImage.png');
},
create: function() {
this.input.maxPointers = 1;
this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
this.scale.parentIsWindow = true;
//this.scale.fullScreenScaleMode = Phaser.ScaleManager.RESIZE;
this.scale.minWidth = 480;
this.scale.minHeight = 320;
//this.scale.pageAlignHorizontally = true;
//this.scale.pageAlignVertically = true;
//this.stage.forcePortrait = true;
this.scale.setScreenSize(true);
this.input.addPointer();
this.stage.backgroundColor = '#171642';
this.stage.disableVisibilityChange = true;
this.state.start('Preloader');
}
}