System.register(['states/MenuScreen', 'states/ActOne', "./states/Ritual", "./states/ActTwo", "./states/GameOver", "./states/End"], function(exports_1) {
    var MenuScreen_1, ActOne_1, Ritual_1, ActTwo_1, GameOver_1, End_1;
    var Game, GameObjectFactory, Main;
    return {
        setters:[
            function (MenuScreen_1_1) {
                MenuScreen_1 = MenuScreen_1_1;
            },
            function (ActOne_1_1) {
                ActOne_1 = ActOne_1_1;
            },
            function (Ritual_1_1) {
                Ritual_1 = Ritual_1_1;
            },
            function (ActTwo_1_1) {
                ActTwo_1 = ActTwo_1_1;
            },
            function (GameOver_1_1) {
                GameOver_1 = GameOver_1_1;
            },
            function (End_1_1) {
                End_1 = End_1_1;
            }],
        execute: function() {
            Game = Phaser.Game;
            Main = (function () {
                function Main() {
                    var _this = this;
                    this.preload = function () {
                    };
                    this.create = function () {
                        _this.menu = new MenuScreen_1.MenuScreen();
                        _this.ritual = new Ritual_1.Ritual();
                        _this.actOne = new ActOne_1.ActOne();
                        _this.actTwo = new ActTwo_1.ActTwo();
                        _this.gameOver = new GameOver_1.GameOver();
                        _this.end = new End_1.End();
                        _this.game.state.add('actOne', _this.actOne, false);
                        _this.game.state.add('actTwo', _this.actTwo, false);
                        _this.game.state.add('menu', _this.menu, false);
                        _this.game.state.add('ritual', _this.ritual, false);
                        _this.game.state.add('gameOver', _this.gameOver, false);
                        _this.game.state.add('end', _this.end, false);
                        _this.game.state.start('menu');
                    };
                    this.update = function () {
                    };
                    this.game = new Game(800, 600, Phaser.AUTO, $('.screen').get(0), {
                        preload: this.preload,
                        create: this.create,
                        update: this.update
                    });
                }
                return Main;
            })();
            $(function () {
                var main = new Main();
            });
        }
    }
});
//# sourceMappingURL=Main.js.map