Make enemies spin
This commit is contained in:
parent
093b9a7ece
commit
7b742c35c4
|
@ -316,6 +316,9 @@ function updateEnemies(dt)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local dangle = 10 / (2 + enemy.until_shoot) * dt
|
||||||
|
enemy.angle = enemy.angle + dangle
|
||||||
|
|
||||||
if not enemy.alive then
|
if not enemy.alive then
|
||||||
table.remove(enemies, i)
|
table.remove(enemies, i)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue