From 30ab23758e4268606ece94dcb2ba2c5cf22114e9 Mon Sep 17 00:00:00 2001 From: JailGamer Date: Sat, 9 May 2026 22:54:02 +0200 Subject: [PATCH] =?UTF-8?q?[WIP]=20S1=20Ending.=20Primer=20tro=C3=A7et=20f?= =?UTF-8?q?et?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/live_scene.lua | 6 ++---- data/stage1.lua | 2 ++ data/stage1_ending.lua | 27 +++++++++++++++++++++++++++ data/trigger.lua | 2 +- 4 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 data/stage1_ending.lua diff --git a/data/live_scene.lua b/data/live_scene.lua index 338aca3..7778370 100644 --- a/data/live_scene.lua +++ b/data/live_scene.lua @@ -12,13 +12,11 @@ live_scene = { -- end function live_scene.update_stage1_ending() - print("UPDATING") - flow:next() + stage1_ending:update_scene() end function live_scene.end_stage1_ending() - print("END") - flow:finish() + stage1_ending:end_scene() end function live_scene.start( name, op ) diff --git a/data/stage1.lua b/data/stage1.lua index 442e6b9..1a133d6 100644 --- a/data/stage1.lua +++ b/data/stage1.lua @@ -1,3 +1,5 @@ +require "stage1_ending" + stages = {} stages.boss_ready = false diff --git a/data/stage1_ending.lua b/data/stage1_ending.lua new file mode 100644 index 0000000..01ada1e --- /dev/null +++ b/data/stage1_ending.lua @@ -0,0 +1,27 @@ +stage1_ending ={ + time = 0, + batvio_vx = 1 +} + +function stage1_ending:update_scene () + print("UPDATING "..self.time) + batvio.x = batvio.x - self.batvio_vx + if self.time>=120 then + flow:next() + end + self.time = self.time + 1 + if self.time % 6 == 0 then + self.batvio_vx= self.batvio_vx+1 + end + batvio.update() + + surf.target(0) + surf.cls(16) + world_draw() + score.draw() +end + +function stage1_ending:end_scene() + print("END") + flow:finish() +end \ No newline at end of file diff --git a/data/trigger.lua b/data/trigger.lua index 24f1625..600123d 100644 --- a/data/trigger.lua +++ b/data/trigger.lua @@ -144,7 +144,7 @@ end function triggers:escena_stage1_ending() print("STAGE 1 ENDING") - abad.update = abad_nop + -- abad.update = abad_nop remove_actor(self) live_scene.start("stage1_ending", "add") start_scene(scenes.stage1_ending, nil, false)