2017-09-24 22:23:22 +00:00
|
|
|
module TK.SpaceTac.UI {
|
2017-10-08 21:25:24 +00:00
|
|
|
/**
|
|
|
|
* First view to boot.
|
|
|
|
*
|
|
|
|
* It is responsible to prepare the screen, and the asset loading.
|
|
|
|
*/
|
2018-05-15 14:57:45 +00:00
|
|
|
export class Boot extends Phaser.Scene {
|
2014-12-29 00:00:00 +00:00
|
|
|
preload() {
|
2018-05-15 14:57:45 +00:00
|
|
|
this.load.image("preload-background", "images/preload/bar-background.png");
|
|
|
|
this.load.image("preload-bar", "images/preload/bar-content.png");
|
2014-12-29 00:00:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
create() {
|
2018-04-12 22:38:46 +00:00
|
|
|
this.add.image(643, 435, "preload-background");
|
2017-01-22 17:00:59 +00:00
|
|
|
|
2018-05-15 14:57:45 +00:00
|
|
|
this.scene.start("router");
|
2014-12-29 00:00:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|