the start of marathon mode
This commit is contained in:
parent
83f0bccd9a
commit
d06acf2522
18 changed files with 607 additions and 26 deletions
|
@ -51,6 +51,15 @@ func final_score():
|
|||
|
||||
|
||||
func _on_AnimationPlayer_animation_finished(anim_name):
|
||||
if Game.marathon_mode:
|
||||
Game.current_level += 1
|
||||
if Game.current_level > LevelData.marathon_end:
|
||||
Fade.fade_out(Options.transition_speed_secs)
|
||||
yield(Fade, "fade_finished")
|
||||
SceneManager.change_scene(load("res://menus/marathon_results.tscn").instance())
|
||||
else:
|
||||
Game.change_map(LevelData.levels[Game.current_level].scene)
|
||||
return
|
||||
Fade.fade_out(Options.transition_speed_secs)
|
||||
yield(Fade, "fade_finished")
|
||||
if Debug.is_cheating == false:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue