Clean up dead sprites properly.

This commit is contained in:
Anna Rose Wiggins 2023-09-30 18:23:42 -04:00
parent 9102397c77
commit 5019be454c
4 changed files with 30 additions and 13 deletions

View file

@ -46,8 +46,14 @@ function setup()
enemy:add()
makeWalls()
drawBackground()
-- debug, TODO remove this code
playdate.inputHandlers.push({
BButtonUp = function()
print(gfx.sprite.spriteCount())
end
})
end
function makeWalls()