aboutsummaryrefslogtreecommitdiff
path: root/enemies.lua
diff options
context:
space:
mode:
authorRibbon <ambiguousmachine@gmail.com>2022-02-11 09:52:06 -0800
committerRibbon <ambiguousmachine@gmail.com>2022-02-11 09:52:06 -0800
commitba21794f28d67f2be5c3154fa3d30b114fd6c37c (patch)
tree41be6cc844a5e57c319decc4c6c09f058b3a483c /enemies.lua
parent2debf09efb92513ef69bfdcf6120bf2d1a9725a7 (diff)
moved sprites, updated text on title screen, added mock up of high score display
also made some edits to sfx channels
Diffstat (limited to 'enemies.lua')
-rw-r--r--enemies.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/enemies.lua b/enemies.lua
index 28abc74..de28adb 100644
--- a/enemies.lua
+++ b/enemies.lua
@@ -181,9 +181,9 @@ function addballshooter(x, y, health, speed)
function enemy.draw(enemy)
if enemy.inv < 0 or ceil(enemy.inv*10%2) == 1 then
- local sprite = 56
+ local sprite = 27
local damaged = (enemy.health < 7)
- if damaged then sprite = 40 end
+ if damaged then sprite = 11 end
spr(sprite, enemy.x, enemy.y, 3, 1, false, not damaged)
spr(sprite, enemy.x, enemy.y+8, 3, 1, false, damaged)
end
@@ -261,7 +261,7 @@ function addtargetingenemy(x, y, health, speed)
function enemy.draw(enemy)
if enemy.inv < 0 or ceil(enemy.inv*10%2) == 1 then
- spr(21, enemy.x, enemy.y, 2, 1)
+ spr(58, enemy.x, enemy.y, 2, 1)
end
end