Add: ScoreText
This commit is contained in:
@@ -94,10 +94,10 @@ class Alien extends Phaser.Sprite {
|
||||
}
|
||||
|
||||
onFired() {
|
||||
this.goRandomPosition();
|
||||
|
||||
if(typeof this.onFiredFunction !== "undefined")
|
||||
this.onFiredFunction();
|
||||
this.onFiredFunction(this);
|
||||
|
||||
this.goRandomPosition();
|
||||
}
|
||||
|
||||
goRandomPosition() {
|
||||
|
||||
Reference in New Issue
Block a user