Make enemies spin

This commit is contained in:
Juhani Krekelä 2023-06-03 22:35:24 +03:00
parent 093b9a7ece
commit 7b742c35c4
1 changed files with 3 additions and 0 deletions

View File

@ -316,6 +316,9 @@ function updateEnemies(dt)
end
end
local dangle = 10 / (2 + enemy.until_shoot) * dt
enemy.angle = enemy.angle + dangle
if not enemy.alive then
table.remove(enemies, i)
else