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

19 lines
586 B
TypeScript
Raw Normal View History

2017-02-09 00:00:35 +00:00
module TS.SpaceTac.UI {
2014-12-29 00:00:00 +00:00
export class Boot extends Phaser.State {
preload() {
2017-01-22 17:00:59 +00:00
this.load.image("preload-background", "assets/images/preload/bar-background.png");
this.load.image("preload-bar", "assets/images/preload/bar-content.png");
2014-12-29 00:00:00 +00:00
}
create() {
2017-01-22 17:00:59 +00:00
this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
this.game.stage.backgroundColor = 0x000000;
2017-05-15 20:16:59 +00:00
this.input.maxPointers = 1;
2017-01-22 17:00:59 +00:00
this.add.image(678, 426, "preload-background");
2015-01-07 00:00:00 +00:00
this.game.state.start("preload");
2014-12-29 00:00:00 +00:00
}
}
}