Skip to content

Commit

Permalink
tweak enemy timing on highter levels
Browse files Browse the repository at this point in the history
  • Loading branch information
metalx1000 committed Jul 4, 2015
1 parent 749e41d commit 1b0ff7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/enemy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b0ff7a

Please sign in to comment.