Feature: adding explosions

Feature: adding CornWeapon explosion animation
This commit is contained in:
Fabrice Ecaille
2013-10-31 18:34:07 +01:00
parent 75828a2c9a
commit fcd9d56df7
6 changed files with 149 additions and 4 deletions

View File

@@ -186,7 +186,7 @@ Game = {
Game.game_over();
return false;
}
if( alien.health > 0 && Math.random() < alien.aggression ) {
if( alien.health > 0 && Math.random() < (alien.aggression * (Game.wave_index + 1)) ) {
alien.fire($("#aliensShots"), "alienShot");
}
});