[WIP] S1 Ending. Segon troçet fet
This commit is contained in:
+28
-9
@@ -5,20 +5,39 @@ stage1_ending ={
|
||||
|
||||
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()
|
||||
|
||||
-- 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()
|
||||
|
||||
Reference in New Issue
Block a user