1
0
Fork 0
spacetac/src/view/Boot.ts

21 lines
644 B
TypeScript

module TS.SpaceTac.View {
export class Boot extends Phaser.State {
preload() {
this.load.image("preload-background", "assets/images/preload/bar-background.png");
this.load.image("preload-bar", "assets/images/preload/bar-content.png");
}
create() {
this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
this.game.stage.backgroundColor = 0x000000;
this.add.image(678, 426, "preload-background");
this.input.maxPointers = 1;
this.stage.disableVisibilityChange = true;
this.game.state.start("preload");
}
}
}