Commit ee82b382 authored by Pablo R. Mier's avatar Pablo R. Mier

evolution time now disappears before showing the crossovers

parent df4842b1
......@@ -192,7 +192,7 @@ invadersApp.Game.prototype = {
var evolutionText;
if (this.animationDelay > 800) {
if (this.animationDelay > 500) {
evolutionText = invadersApp.utils.addText(this, this.game.width / 2, this.game.height / 2, 'EVOLUTION TIME', 5);
}
......@@ -219,6 +219,11 @@ invadersApp.Game.prototype = {
this.animationTimer.repeat(this.animationDelay, offspring.length + 1, function () {
if (childIndex == offspring.length) return;
if (evolutionText != undefined){
evolutionText.img.destroy();
evolutionText = null;
}
// Disable shields for all the invaders
aliveInvaders.callAll('hideShield');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment