Clean up dead sprites properly.
This commit is contained in:
parent
9102397c77
commit
5019be454c
4 changed files with 30 additions and 13 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue