destroyable npc

This commit is contained in:
MaddoScientisto 2024-05-01 10:12:38 +02:00
commit 6c07ba4bd5
2 changed files with 89 additions and 83 deletions

View file

@ -7,6 +7,8 @@ function NPC:new(x,y)
n.spriteIndex = 69
n.range = 64 + 16
n.shootable = true
n.life = 4
n.found = false
@ -53,6 +55,10 @@ function NPC:update()
end
end
function NPC:destroy()
del(actors,self)
end
function NPC:draw()
--circfill(self.x,self.y,self.range,18)