[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:
@@ -69,6 +69,8 @@ function gota:update_normal()
|
||||
self.dy=-4
|
||||
self.dy=-2
|
||||
if self.hab==abad.hab then sound.play(audio_low) end
|
||||
else
|
||||
self.draw=gota.draw_falling
|
||||
end
|
||||
else
|
||||
--self.flip=not self.flip
|
||||
@@ -101,6 +103,13 @@ end
|
||||
function gota:hit()
|
||||
end
|
||||
|
||||
function gota:draw_falling()
|
||||
local gota_x, gota_y = viewp:screen_coords( self.x, self.y )
|
||||
draw.circf( gota_x+4, gota_y+12, 4, 16)
|
||||
draw.circf( gota_x+5, gota_y+13, 3, 11)
|
||||
surf.pixel( gota_x+3, gota_y+13, 2)
|
||||
end
|
||||
|
||||
function gota:draw_drop( x, y )
|
||||
splash_x, splash_y = viewp:screen_coords( x, y )
|
||||
draw.circf( splash_x, splash_y, 2, 16)
|
||||
|
||||
Reference in New Issue
Block a user