var __extends = this.__extends || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    __.prototype = b.prototype;
    d.prototype = new __();
};
var TitleScreen;
(function (TitleScreen) {
    var TitleScreenState = (function (_super) {
        __extends(TitleScreenState, _super);
        function TitleScreenState() {
            _super.call(this);
        }
        TitleScreenState.prototype.create = function () {
            _super.prototype.create.call(this);
            this.game.add.image(452, 158, "box");
            var spons = this.game.add.image(0, this.game.height * 0.83, "sponsors");
            var guide = this.game.add.image(210, 540, "introGuide");
            var play = this.game.add.button(1112, 630, "play", this.playDown, this, 1, 0, 2, 1);
            this.game.world.sort();
        };
        TitleScreenState.prototype.preload = function () {
            _super.prototype.preload.call(this);
            this.load.spritesheet("play", "Graphics/gui/play_btn.png", 200, 200, 3);
            this.load.image("box", "Graphics/gui/intro_box.png");
            this.load.image("sponsors", "Graphics/gui/sponsors.png");
            this.load.image("introGuide", "Graphics/gui/guide2.png");
        };
        TitleScreenState.prototype.playDown = function (play, pointer) {
            this.game.state.start("MainGameState", true, false, 0);
        };
        return TitleScreenState;
    })(BasicModule.BasicState);
    TitleScreen.TitleScreenState = TitleScreenState;
})(TitleScreen || (TitleScreen = {}));
//# sourceMappingURL=TitleScreenState.js.map