- [FIX] Ajustats alguns "edge cases" de algunes habitacions

- [FIX] Ajustada la diferència de cadència entre gotes
- [FIX] Ajustat el nivell de l'aigua, que fallaba l'ultima linia
This commit is contained in:
2026-03-24 13:58:07 +01:00
parent cee6ade851
commit c1f5f92dae
6 changed files with 10 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -2,6 +2,9 @@
function ia.update_gota(spr)
if spr.timer > 0 then
spr.timer = spr.timer-1
if spr.timer == 0 then
sprites.set_animation(spr, "gota_generador")
end
return
else
spr.invisible = nil;

View File

@@ -2,6 +2,8 @@ ia = {}
require "ia.*"
local gota_wait = 1
templates = {
ALIVE = 0,
DYING = 1,
@@ -202,13 +204,15 @@ function me.create(type, options)
current_wait = 1,
flipped = options.flipped,
surf = surf.load("gfx/gota.gif"),
animation = "gota_generador",
animation = "gota",
state = me.ALIVE,
enemy = true,
timer = math.random(0,100),
timer = gota_wait,
room = options.room,
ia = ia.update_gota
}
gota_wait = gota_wait + 10
if gota_wait > 40 then gota_wait = 1 end
elseif key == "gota_caiguent" then
sprite = {
type = key,

View File

@@ -130,7 +130,7 @@ game = {
surf.source(game.back_buf)
for x=0,159 do
local water_level = math.sin(game.water_counter)*2
for y=88+water_level,103 do
for y=88+water_level,104 do
local pixel = surf.pixel(x,y)
surf.pixel(x,y,game.water_pal[pixel+1])
end