[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user