[WIP] Afegint codi per a múltiples fases

[NEW] Quan cau la gota canvia la imatge. Ja no cauen peres XD
[FIX] El foc feia mal des de massa alt
This commit is contained in:
2026-04-04 16:54:44 +02:00
parent d5896466cf
commit 205586cc77
7 changed files with 146 additions and 114 deletions

View File

@@ -11,13 +11,13 @@ function invisible.new(_hab,_x,_y)
hit=invisible.hit,
update=invisible.update,
draw=invisible.draw,
bb={x=0,y=0,w=16,h=16}}
bb={x=0,y=1,w=16,h=15}}
end
function invisible:draw()
-- Es invisible, res que drawar
-- local scr_x, scr_y = viewp:screen_coords( self.x, self.y )
-- draw.rectf(scr_x, scr_y, 16, 8, 2)
-- local scr_x, scr_y = viewp:screen_coords( self.x+self.bb.x, self.y+self.bb.y )
-- draw.rect(scr_x, scr_y, 16, 16, 3)
end
function invisible:update()