From d03406825c2bab8b331511ca9b6d2982ddc98a46 Mon Sep 17 00:00:00 2001 From: JailGamer Date: Tue, 12 May 2026 22:31:24 +0200 Subject: [PATCH] =?UTF-8?q?[FIX]=20L'animaci=C3=B3=20del=20text=20dels=20d?= =?UTF-8?q?i=C3=A0legs=20ja=20es=20pot=20skipar=20i=20es=20queda=20en=20pa?= =?UTF-8?q?ntalla=20per=20a=20llegir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/scenes.lua | 55 +++++++++++++++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 20 deletions(-) diff --git a/data/scenes.lua b/data/scenes.lua index 18dc7a1..6b21b7f 100644 --- a/data/scenes.lua +++ b/data/scenes.lua @@ -213,7 +213,7 @@ function start_scene(_scene, offset, stop_music) -- game_update=update_scene scene.running = true if not stop_music then scene.stop_music = false end - print("SCENE START") + -- print("SCENE START") states:executar("scene", true); -- guardar l'estat anterior i executar end @@ -387,7 +387,6 @@ function update_scene() scenes.wait=0 draw_scene() if scenes.step>8 then - -- print("SCENES.DIE= "..scenes.die) if scenes.die>0 then scenes.die=scenes.die-1 if scenes.die==0 then @@ -426,28 +425,44 @@ function update_scene() end end - if scenes.step>8 then - if controller:check("shoot") or controller:check("down") or - controller:check("up") or controller:check("left") or - controller:check("right") or key.press(key.RETURN) then + -- if scenes.step>8 then + -- if controller:check("shoot") or controller:check("down") or + -- controller:check("up") or controller:check("left") or + -- controller:check("right") or key.press(key.RETURN) then + -- if scenes.dnum==#scenes.current_scene then + -- if scenes.stop_music then music.stop() end + -- -- if batman.endgame then + -- -- final_init() + -- -- fade.fadeoutin() + -- -- else + -- -- game_update=old_update + -- states:next() + -- -- end + -- else + -- -- scenes.dnum=scenes.dnum+1 + -- -- scenes.step=2 + -- next_scene() + -- end + -- end + -- elseif key.press(keyShoot) or pad.press(btnShoot) then + -- scenes.step=8 + -- scenes.die =20 + -- print("SKIP") + -- end + if controller:check("shoot") then + if scenes.step<8 then + -- skip play text + scenes.step=8 + elseif scenes.die==0 and scenes.step>=8 then + -- continue scene if scenes.dnum==#scenes.current_scene then - if scenes.stop_music then music.stop() end - -- if batman.endgame then - -- final_init() - -- fade.fadeoutin() - -- else - -- game_update=old_update - states:next() - -- end + if scene.stop_music then music.stop() end + states:next() else - -- scenes.dnum=scenes.dnum+1 - -- scenes.step=2 next_scene() end - end - elseif key.press(keyShoot) or pad.press(btnShoot) then - scenes.step=8 - end + end + end end function end_scene()