Tune enemy behaviour

This commit is contained in:
Juhani Krekelä 2023-06-03 22:10:36 +03:00
parent 643663a415
commit 710cf27036
1 changed files with 3 additions and 3 deletions

View File

@ -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