-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBoot.js
27 lines (22 loc) · 826 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
var GoosePatrol = {};
GoosePatrol.Boot = function (game) {};
GoosePatrol.Boot.prototype = {
preload: function() {
this.load.image('preloaderBar', 'resources/loadbar.png')
},
//Initialize all the game settings (e.g. screen size, amnt of pointer, etc)
create: function() {
this.input.maxPointers = 1;
this.stage.disableVisibilityChange = false;
this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
this.scale.minWidth = 800;
this.scale.minHeight = 600;
this.scale.pageAlignHorizontally = true;
this.scale.pageAlignVertically = true;
this.stage.forcePortrait = true;
this.scale.setScreenSize(true);
this.input.addPointer();
this.stage.backgroundColor = '#000000';
this.state.start('Preloader');
}
};