[WIP] S1 Ending. Sisena 'escena'
This commit is contained in:
@@ -349,4 +349,34 @@ function premiere.stage1_ending_update2()
|
||||
premiere.frame=premiere.anim[premiere.step+1]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function premiere.stage1_ending_init3()
|
||||
-- if premiere.update==premiere_update_healer then return true end
|
||||
premiere.backup()
|
||||
-- Moure a premiere al ending
|
||||
premiere.hab = 7
|
||||
premiere.x = 6
|
||||
premiere.y = 2
|
||||
local world_x, world_y = coords.room_to_world(premiere.hab,premiere.x,premiere.y)
|
||||
premiere.x=world_x
|
||||
premiere.y=world_y
|
||||
premiere.update = premiere.stage1_ending_update3
|
||||
end
|
||||
|
||||
function premiere.stage1_ending_update3()
|
||||
premiere.wait=premiere.wait+1
|
||||
|
||||
-- avançar a 8,1,3
|
||||
local hab, tx, ty = coords.world_to_tile(premiere.x, premiere.y)
|
||||
if hab == 7 and tx==5 and ty==3 then
|
||||
-- premiere.health_wait = premiere.health_wait - 1
|
||||
premiere.flip=false
|
||||
else
|
||||
if premiere.wait>=3 then
|
||||
premiere.x = premiere.x+1
|
||||
premiere.wait = 0
|
||||
premiere.frame=premiere.anim[1]
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user