add completion requirements and flag to level data and save

This commit is contained in:
Haze Weathers 2023-12-24 21:23:28 -05:00
parent 885082c7c4
commit f263ce7842
6 changed files with 52 additions and 3 deletions

View file

@ -17,7 +17,7 @@ func _on_Boss1_entered_phase(phase):
$DelayedArrow3.start()
4:
$ExitTimer.start()
if Debug.prey_slaughtered == false:
if not Debug.prey_slaughtered:
var text_3d = Text3D.instance()
text_3d.anim = "victory"
self.add_child(text_3d)
@ -29,5 +29,5 @@ func _on_Boss1_entered_phase(phase):
func _on_ExitTimer_timeout():
Game.save()
Game.save_boss()
Game.change_map(load("res://menus/level_select_scholar.tscn"))

View file

@ -20,5 +20,5 @@ func _on_2600_entered_phase(phase):
func _on_ExitTimer_timeout():
Game.save()
Game.save_boss()
Game.change_map(load("res://menus/level_select_scholar.tscn"))