- Primer 'redo' de part del codi
- Afegida la pantalla de titol
This commit is contained in:
@@ -162,8 +162,11 @@ function start_scene(scene,offset)
|
||||
music.play(scenes.current_scene[scenes.dnum].musica)
|
||||
end
|
||||
if offset then scenes.offset=offset end
|
||||
old_update=game_update
|
||||
game_update=update_scene
|
||||
-- old_update=game_update
|
||||
-- game_update=update_scene
|
||||
-- flow:add("save", game_update)
|
||||
flow:add("scene",update_scene)
|
||||
flow:call("scene")
|
||||
end
|
||||
|
||||
function playtext(snd)
|
||||
@@ -280,7 +283,8 @@ function update_scene()
|
||||
-- final_init()
|
||||
-- fade.fadeoutin()
|
||||
-- else
|
||||
game_update=old_update
|
||||
-- game_update=old_update
|
||||
flow:restore()
|
||||
-- end
|
||||
else
|
||||
scenes.dnum=scenes.dnum+1
|
||||
@@ -300,7 +304,9 @@ function update_scene()
|
||||
|
||||
if (key.press(key.ESCAPE) or pad.press(btnPause)) and (scenes.current_scene~=scenes.final) then
|
||||
if scenes.current_scene[scenes.dnum].die then
|
||||
game_init(true)
|
||||
-- game_init(true)
|
||||
flow:next()
|
||||
-- game_update = menu_init
|
||||
else
|
||||
pause()
|
||||
end
|
||||
@@ -315,7 +321,8 @@ function update_scene()
|
||||
-- final_init()
|
||||
-- fade.fadeoutin()
|
||||
-- else
|
||||
game_update=old_update
|
||||
-- game_update=old_update
|
||||
flow:restore()
|
||||
-- end
|
||||
else
|
||||
scenes.dnum=scenes.dnum+1
|
||||
|
||||
Reference in New Issue
Block a user