consolidate single color sprites into one master file

This commit is contained in:
Your Name 2026-08-22 11:44:51 -04:00
parent 7d84f595e4
commit fe5a11112f
16 changed files with 90 additions and 53 deletions

View file

@ -9,7 +9,7 @@ function Door:initialize(x, y, color)
y = y,
color = color,
collision = "unmoveable",
sprite = loadSprite("art/game/door_" .. color:sub(1, 1) .. ".png"),
sprite = loadSprite("art/game/door.png"),
})
self.isDoor = true
self.locked = true
@ -21,7 +21,7 @@ end
function Door:refreshSprites()
local sprite
if self.locked then
sprite = loadSprite("art/game/door_" .. self.doorColor:sub(1, 1) .. ".png")
sprite = loadSprite("art/game/door.png")
else
sprite = loadSprite("art/game/door_unlocked.png")
end