- [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

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,