-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.ts
26 lines (21 loc) · 797 Bytes
/
App.ts
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
module Game {
export class DebugginGame {
game : Phaser.Game;
constructor() {
this.game = new Phaser.Game(1000, 545, Phaser.AUTO, 'content', {
create: this.create
});
}
create() {
this.game.state.add("HelpState", Krakenator.HelpState, false);
this.game.state.add("SaveState", Krakenator.SaveState, false);
this.game.state.add("MainState", Krakenator.MainState, false);
this.game.state.add("TitleScreenState", Krakenator.TitleScreenState, false);
this.game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
this.game.state.start("TitleScreenState", true, true);
}
}
}
window.onload = () => {
var game = new Game.DebugginGame();
}