Fix: AlienTimer bug, change heart image
This commit is contained in:
@@ -49,7 +49,6 @@ class Alien extends Phaser.Sprite {
|
||||
return;
|
||||
|
||||
if(this.isOnWaitingRoom) {
|
||||
this.isOnWaitingRoom = false;
|
||||
this.goOnstage();
|
||||
return;
|
||||
} else {
|
||||
@@ -96,6 +95,7 @@ class Alien extends Phaser.Sprite {
|
||||
}
|
||||
|
||||
goOnstage() {
|
||||
this.isOnWaitingRoom = false;
|
||||
this.goRandomPosition();
|
||||
|
||||
if(typeof this.onGoOnstageFunction !== "undefined")
|
||||
|
||||
@@ -96,4 +96,4 @@ AlienTimer.DEFAULT_TEXT_FONT = {
|
||||
};
|
||||
|
||||
AlienTimer.DEFAULT_TIME_GAP_SEC = 10;
|
||||
AlienTimer.MOVE_UP_AMOUNT_PX = 60;
|
||||
AlienTimer.MOVE_UP_AMOUNT_PX = 48;
|
||||
@@ -4,7 +4,7 @@
|
||||
class Game {
|
||||
|
||||
create() {
|
||||
this.game.stage.backgroundColor = '#4d4d4d';
|
||||
this.game.stage.backgroundColor = "#000000"; // '#4d4d4d';
|
||||
|
||||
sessionStorageManager.isNewBestRecrd = false;
|
||||
|
||||
@@ -47,7 +47,7 @@ class Game {
|
||||
|
||||
// waiting room
|
||||
this.game.add.graphics()
|
||||
.beginFill(0xffffff, 0.1)
|
||||
.beginFill(0xffffff, 0.3)
|
||||
.drawRect(0, 100, game.world.width, 100);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user