- [NEW] Cacaus bowl - [NEW] Bowl found scene - [NEW] Batman kills on touch - [NEW] Drops and invisibles everywhere - Changed Batman room
28 lines
515 B
Lua
28 lines
515 B
Lua
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
|