aboutsummaryrefslogtreecommitdiff
path: root/bullets.lua
diff options
context:
space:
mode:
authorChris Bradley <1029chris@gmail.com>2022-02-20 15:51:09 -0800
committerChris Bradley <1029chris@gmail.com>2022-02-20 15:51:09 -0800
commit995f96d8af37320da58733aeb4b2107af25ab668 (patch)
tree1bc7670dccbfc99bbc34a1612a737cb64be0010a /bullets.lua
parenta6097b11affbbd8c93c40bfc575bf25146c0c8fb (diff)
Turns out "\" is division + floor, thats cool! Saved a little tokens implementing it all over
Diffstat (limited to 'bullets.lua')
-rw-r--r--bullets.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/bullets.lua b/bullets.lua
index 5d050a2..6686a7e 100644
--- a/bullets.lua
+++ b/bullets.lua
@@ -128,7 +128,7 @@ function addmissile(x, y, target) --basic small weak enemy
}
function enemy.draw()
- if enemy.inv < 0 or ceil(enemy.inv*10%2) == 1 then
+ if enemy.inv < 0 or flashtime then
spr(12, enemy.x, enemy.y, 2, 1)
end
end