From 6276948f87fec96c939088ebdc91d06e9be1df13 Mon Sep 17 00:00:00 2001 From: JailGamer Date: Tue, 19 May 2026 21:51:44 +0200 Subject: [PATCH] =?UTF-8?q?[NEW]=20Outro=20al=20acabar=20en=20el=20boss=20?= =?UTF-8?q?[FIX]=20Abad=20mogut=20a=20una=20posici=C3=B3=20segura=20al=20a?= =?UTF-8?q?cabar=20en=20el=20boss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/stage1_boss.lua | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/data/stage1_boss.lua b/data/stage1_boss.lua index c625feb..d661d44 100644 --- a/data/stage1_boss.lua +++ b/data/stage1_boss.lua @@ -1,5 +1,8 @@ stage1_boss ={ time = 0, + out_x = 0, + out_y = 0, + out_speed = 8, } function stages.stage1_boss_ready() @@ -83,7 +86,7 @@ end function stages.stage1_boss_intro_update() if stage1_boss.time==0 then - start_scene(scenes.lluita_imp, nil, false) + -- start_scene(scenes.lluita_imp, nil, false) stages.stage1_boss_ready() end @@ -96,17 +99,37 @@ function stages.stage1_boss_intro_update() end function stages.stage1_boss_intro_end() + stage1_boss.out_x = 0 + stage1_boss.out_y = 0 + stage1_boss.out_speed = 12 states:finish() end -- OUTRO FUNCTION function stages.stage1_boss_outro_update() stage1_boss.time = stage1_boss.time + 1 + -- black out + if stage1_boss.time%stage1_boss.out_speed==0 then + if stage1_boss.out_x==8 then + stage1_boss.out_x = 0 + stage1_boss.out_y = stage1_boss.out_y+1 + end + + draw.rectf(stage1_boss.out_x*32,stage1_boss.out_y*32,32,32,16) + stage1_boss.out_x = stage1_boss.out_x +1 + if stage1_boss.out_speed>1 then stage1_boss.out_speed = stage1_boss.out_speed -1 end + end - states:next() + if stage1_boss.out_y>=6 then + states:next() + end end function stages.stage1_boss_outro_end() + local abad_x, abad_y = coords.room_to_world ( 54, 8, 3 ) + abad:move(abad_x, abad_y) + abad_make_safe( true ) + stages.stage1_boss_finished() remove_actor(boss) unload_boss_stage()