added music/sounds

This commit is contained in:
2021-12-12 16:44:25 -06:00
parent 2c65c5f4b6
commit 877648dbc2
42 changed files with 715 additions and 548 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