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(this.game.width / 5, this.game.height / 10, "box");
            var spons = this.game.add.image(0, this.game.height * 0.83, "sponsors");
            spons.scale.y = 1.15;
            var guide = this.game.add.image(this.game.width * 0.65, this.game.height * 0.30, "introGuide");
            guide.z = 4;
            var play = this.game.add.button(this.game.width * 0.26, this.game.height * 0.53, "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", "Images/GUI/play_btn.png", 215, 215, 2);
            this.load.image("box", "Images/GUI/intro_box.png");
            this.load.image("sponsors", "Images/GUI/sponsors.png");
            this.load.image("introGuide", "Images/GUI/guide2.png");
        };
        TitleScreenState.prototype.playDown = function (play, pointer) {
            this.game.state.start("MainGameState", true, false);
        };
        return TitleScreenState;
    })(BasicModule.BasicState);
    TitleScreen.TitleScreenState = TitleScreenState;
})(TitleScreen || (TitleScreen = {}));
//# sourceMappingURL=TitleScreenState.js.map