2014-12-29 00:00:00 +00:00
|
|
|
module SpaceTac.View {
|
|
|
|
export class Boot extends Phaser.State {
|
|
|
|
preload() {
|
2017-01-12 21:53:34 +00:00
|
|
|
this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
|
2015-03-12 00:00:00 +00:00
|
|
|
this.game.stage.backgroundColor = 0x202020;
|
2017-01-12 21:53:34 +00:00
|
|
|
|
2017-01-10 00:22:59 +00:00
|
|
|
this.add.text(this.world.width / 2, this.world.height / 2 - 40, "... Loading ...", { align: "center", font: "bold 20px Arial", fill: "#c0c0c0" })
|
2015-03-12 00:00:00 +00:00
|
|
|
.anchor.set(0.5, 0.5);
|
|
|
|
|
2015-01-07 00:00:00 +00:00
|
|
|
this.load.image("preload-bar", "assets/images/preloader.gif");
|
2014-12-29 00:00:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
create() {
|
|
|
|
this.input.maxPointers = 1;
|
|
|
|
this.stage.disableVisibilityChange = true;
|
|
|
|
|
2015-01-07 00:00:00 +00:00
|
|
|
this.game.state.start("preload");
|
2014-12-29 00:00:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|