/**
* Created by Largoyle on 12/04/2014.
*/
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 __();
};
/// <reference path="H:/Webpages/96ideas/Gamster/root/libs/phaser/build/phaser.d.ts" />
var BTSLD29;
(function (BTSLD29) {
    var Boot = (function (_super) {
        __extends(Boot, _super);
        function Boot() {
            _super.apply(this, arguments);
        }
        Boot.prototype.preload = function () {
            this.load.image('preloadBar', 'assets/std/img/bts_loadingbar2.png');
            this.load.image('logo', 'assets/i96_logo.png');
            this.game.stage.backgroundColor = '#ffffff';
        };

        Boot.prototype.create = function () {
            //  Unless you specifically need to support multitouch I would recommend setting this to 1
            this.input.maxPointers = 1;

            //  Phaser will automatically pause if the browser tab the game is in loses focus. You can disable that here:
            this.stage.disableVisibilityChange = true;

            if (this.game.device.desktop) {
                //  If you have any desktop specific settings, they can go in here
                //                this.stage.scale.pageAlignHorizontally = true;
            } else {
                //  Same goes for mobile settings.
                //  In this case we're saying "scale the game, no lower than 480x260 and no higher than 1024x768"
                //                this.stage.scaleMode = Phaser.StageScaleMode.SHOW_ALL;
                //                this.stage.scale.minWidth = 480;
                //                this.stage.scale.minHeight = 260;
                //                this.stage.scale.maxWidth = 1024;
                //                this.stage.scale.maxHeight = 768;
                //                this.stage.scale.forceLandscape = true;
                //                this.stage.scale.pageAlignHorizontally = true;
                //                this.stage.scale.setScreenSize(true);
            }

            this.game.state.start('Preloader', true, false);
        };
        return Boot;
    })(Phaser.State);
    BTSLD29.Boot = Boot;
})(BTSLD29 || (BTSLD29 = {}));
//# sourceMappingURL=Boot.js.map
