mirror of
https://gitlab.com/MaddoScientisto/cirnofarm.git
synced 2026-06-09 21:05:54 +00:00
destroyable npc
This commit is contained in:
parent
0651600329
commit
6c07ba4bd5
2 changed files with 89 additions and 83 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue