1
0
Fork 0

Fixed window focus issue

This commit is contained in:
Michaël Lemaire 2017-05-15 22:16:59 +02:00
parent ccab5fe8fc
commit dd4593ec3a
3 changed files with 4 additions and 4 deletions

1
TODO
View file

@ -8,7 +8,6 @@
* Character sheet: tooltip to show the sources of attributes
* Menu: end appear animation when a button is clicked
* Menu: allow to delete cloud saves
* Menu: fix background stars aggregating at right side when the game is not focused
* Add permanent effects to ship models to ease balancing
* Find incentives to move from starting position
* Fix targetting not resetting when using action shortcuts

View file

@ -45,7 +45,10 @@ module TS.SpaceTac.UI {
}
create() {
// Phaser config
this.game.stage.backgroundColor = 0x000000;
this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
this.input.maxPointers = 1;
// View layers
this.layers = this.add.group();

View file

@ -8,12 +8,10 @@ module TS.SpaceTac.UI {
create() {
this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
this.game.stage.backgroundColor = 0x000000;
this.input.maxPointers = 1;
this.add.image(678, 426, "preload-background");
this.input.maxPointers = 1;
this.stage.disableVisibilityChange = true;
this.game.state.start("preload");
}
}