1
0
Fork 0

Fixed preload bar centering on chrome

This commit is contained in:
Michaël Lemaire 2015-01-23 01:00:00 +01:00 committed by Michaël Lemaire
parent caf4e82515
commit d69459a7e3

View file

@ -7,7 +7,7 @@ module SpaceTac.View {
preload() {
// Add preload sprite
this.preloadBar = this.add.sprite(0, 0, "preload-bar");
this.preloadBar.position.set((this.stage.width - this.preloadBar.width) / 2, (this.stage.height - this.preloadBar.height) / 2);
this.preloadBar.position.set((1280 - this.preloadBar.width) / 2, (720 - this.preloadBar.height) / 2);
this.load.setPreloadSprite(this.preloadBar);
// Load assets