[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
@@ -214,7 +214,7 @@ function start_scene(_scene, offset, stop_music)
scene.running = true
if not stop_music then scene.stop_music = false end
print("SCENE START")
flow:executar("scene", true); -- guardar l'estat anterior i executar
states:executar("scene", true); -- guardar l'estat anterior i executar
end
function playtext(snd)
@@ -399,7 +399,7 @@ function update_scene()
-- else
-- game_update=old_update
-- flow:restore()
flow:next()
states:next()
-- end
else
next_scene()
@@ -420,7 +420,7 @@ function update_scene()
-- game_init(true)
-- flow:next()
-- game_update = menu_init
flow:executar("title")
states:executar("title")
else
pause()
end
@@ -437,7 +437,7 @@ function update_scene()
-- fade.fadeoutin()
-- else
-- game_update=old_update
flow:next()
states:next()
-- end
else
-- scenes.dnum=scenes.dnum+1
@@ -452,7 +452,7 @@ end
function end_scene()
scene.running = false
flow:finish()
states:finish()
end
flow:registrar("scene",{update_scene, end_scene})
states:registrar("scene",{update_scene, end_scene})