[WIP] S1 Ending. Primer troçet fet

This commit is contained in:
2026-05-09 22:54:02 +02:00
parent 83720a8b69
commit 30ab23758e
4 changed files with 32 additions and 5 deletions
+2 -4
View File
@@ -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 )
+2
View File
@@ -1,3 +1,5 @@
require "stage1_ending"
stages = {}
stages.boss_ready = false
+27
View File
@@ -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
+1 -1
View File
@@ -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)