Fixed debugger errors in many files and optimized some scenes/code

This commit is contained in:
VoidTwo
2021-12-12 23:55:59 -06:00
parent fc6dfdef4d
commit ef5ce684eb
39 changed files with 657 additions and 740 deletions

View File

@@ -4,14 +4,14 @@ var death_count: int = 0
func _ready() -> void:
$YSort/Player.load_hud($HUD)
return
$YSort/Player.load_hud($HUD)
return
func _on_dark_matter_death() -> void:
death_count += 1
if death_count == 5:
if get_tree().change_scene('res://GUI/Level Complete.tscn') != OK:
print('ERROR: Level 1 failed to change scene to Level Complete.')
queue_free()
return
death_count += 1
if death_count == 5:
if get_tree().change_scene('res://GUI/Level Complete.tscn') != OK:
print('ERROR: Level 1 failed to change scene to Level Complete.')
queue_free()
return