- [NEW] Invisible actor

- [NEW] Cacaus bowl
- [NEW] Bowl found scene
- [NEW] Batman kills on touch
- [NEW] Drops and invisibles everywhere
- Changed Batman room
This commit is contained in:
2022-12-05 20:03:25 +01:00
parent 419af8c7b1
commit 97f28fa883
9 changed files with 92 additions and 6 deletions

27
invisible.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