- "invisible.lua" renamed to "invisibl.lua" to comply with respak filenames limit

- Removed unused "work" directory
This commit is contained in:
2022-12-30 07:55:28 +01:00
parent cfe78a72b6
commit 660c8ffb65
5 changed files with 1 additions and 1 deletions

27
invisibl.lua Normal file
View File

@@ -0,0 +1,27 @@
invisible={}
function invisible.new(_hab,_x,_y)
return {hab=_hab,x=_x,y=_y,wait=0,hit=invisible.hit,update=invisible.update,draw=invisible.draw,bb={x=0,y=0,w=8,h=8}}
end
function invisible:draw()
-- Es invisible, res que drawar
end
function invisible:update()
self.wait=self.wait+1
if self.wait==6 then
self.wait=0
if self.hab==abad.hab then
if aabb(abad,self) then
abad_hurt(1)
end
end
end
end
function invisible:hit()
end