-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
23 lines (23 loc) · 931 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
var Game;
(function (Game) {
var DebugginGame = (function () {
function DebugginGame() {
this.game = new Phaser.Game(1000, 545, Phaser.AUTO, 'content', {
create: this.create
});
}
DebugginGame.prototype.create = function () {
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);
};
return DebugginGame;
}());
Game.DebugginGame = DebugginGame;
})(Game || (Game = {}));
window.onload = function () {
var game = new Game.DebugginGame();
};