diff --git a/bundle/main.lua b/bundle/main.lua index 50a0d84..a1728d8 100644 --- a/bundle/main.lua +++ b/bundle/main.lua @@ -14,7 +14,7 @@ local missile_speed_min = 0.15 local missile_speed_max = 0.25 local unreflected_missiles = 0 -local unreflected_missiles_max = 5 +local unreflected_missiles_max = 4 local cities = {} local city_radius = 0.05 @@ -26,7 +26,7 @@ local explosion_duration = 0.4 local enemies = {} local enemy_radius = 0.025 local enemy_min_shoot = 2 -local enemy_max_shoot = 20 +local enemy_max_shoot = 10 local enemy_inaccuracy = 0.05 local window_width = nil @@ -137,7 +137,7 @@ function spawnEnemy(x, y) table.insert(enemies, { x = x, y = y, - until_shoot = math.random() * (enemy_max_shoot - enemy_min_shoot), + until_shoot = enemy_min_shoot + math.random() * (enemy_max_shoot - enemy_min_shoot), alive = true }) end