[FIX] Canviat el nom de flow a states que es mes precis

[FIX] Ajustada posició del peu en habitació 27
[FIX] Modificat trigger_event per a que es disparen en una habitació concreta i també segons distancia sense haver de colisionar
[FIX] Ending stage 1
[FIX] ELiminades llunes duplicades
[NEW] Dialeg per a l'abad
This commit is contained in:
2026-05-10 14:08:11 +02:00
parent 8657dfd918
commit 45ea1b33bf
16 changed files with 105 additions and 80 deletions
+6 -6
View File
@@ -20,7 +20,7 @@ function opcions_input_init()
surf.target(0)
surf.cls(16)
menu_opt = 1
flow:next()
states:next()
end
function opcions_input_draw()
@@ -70,7 +70,7 @@ function opcions_input_update()
local curr_key = input_keys[menu_opt]
if key.press(key.ESCAPE) then
flow:next()
states:next()
return
end
@@ -99,7 +99,7 @@ end
function opcions_input_end()
menu_opt = 0
flow:finish()
states:finish()
end
function config_key(def_key, k)
@@ -120,8 +120,8 @@ function config_key(def_key, k)
print("ERROR AL DEFINIR")
end
if end_setup then flow:next() end
if end_setup then states:next() end
end
flow:registrar("opcions_teclat", { opcions_teclat_init, opcions_input_show, opcions_input_end } )
flow:registrar("opcions_gamepad", { opcions_gamepad_init, opcions_input_show, opcions_input_end } )
states:registrar("opcions_teclat", { opcions_teclat_init, opcions_input_show, opcions_input_end } )
states:registrar("opcions_gamepad", { opcions_gamepad_init, opcions_input_show, opcions_input_end } )