Files
cacaus-arcade/data/stage1_ending.lua
T

46 lines
1009 B
Lua

stage1_ending ={
time = 0,
batvio_vx = 1
}
function stage1_ending:update_scene ()
print("UPDATING "..self.time)
-- primera escena - batman escapa
if self.time<120 then
batvio.x = batvio.x - self.batvio_vx
if self.time % 6 == 0 then
self.batvio_vx= self.batvio_vx+1
end
batvio.update()
elseif self.time==120 then
batvio.enabled = false
premiere.stage1_ending_init()
elalien.stage1_ending_init()
elseif self.time<250 then
premiere.update()
elalien.update()
-- segona escena - Aparició de elalien i premiere
-- elalien 9,0,3 -> 8,6,3
-- premiere 7,6,3 -> 8,1,3
elseif self.time<300 then
end
surf.target(0)
surf.cls(16)
world_draw()
score.draw()
self.time = self.time + 1
-- Acabar ending
if self.time>=250 then
flow:next()
end
end
function stage1_ending:end_scene()
print("END")
flow:finish()
end