From 1b0ff7a2c00a3b0028869d0a88f53900e2605a50 Mon Sep 17 00:00:00 2001 From: metalx1000 Date: Sat, 4 Jul 2015 11:21:46 +0000 Subject: [PATCH] tweak enemy timing on highter levels --- js/enemy.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/enemy.js b/js/enemy.js index ffdaa51..d4883bf 100644 --- a/js/enemy.js +++ b/js/enemy.js @@ -141,9 +141,10 @@ function new_enemy(type,life,size,x,y){ var delay = Math.floor(Math.random() * enemy_wait1) + enemy_wait2 if(enemy_wait1 > 2000){ enemy_wait1-=10 - } - if(enemy_wait2 > 500){ enemy_wait2-=10 + }else if(enemy_wait1 < 2000 && level > 5){ + enemy_wait1 = 8000 + enemy_wait2 = 4000 } enemy_timer = game.time.now + delay