27 lines
504 B
Lua
27 lines
504 B
Lua
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 |