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

19 lines
429 B
TypeScript
Raw Normal View History

2014-12-29 00:00:00 +00:00
module SpaceTac.View {
2015-01-07 00:00:00 +00:00
"use strict";
2014-12-29 00:00:00 +00:00
export class Boot extends Phaser.State {
preload() {
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.game.stage.backgroundColor = 0xFFFFFF;
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
}
}
}