[WIP] Afegint codi per a múltiples fases

This commit is contained in:
2026-04-04 16:54:44 +02:00
parent d5896466cf
commit d02a9c06a3
7 changed files with 146 additions and 114 deletions

View File

@@ -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)