implemented death sounds

This commit is contained in:
mtrx 2023-10-01 21:07:09 +02:00
parent d35c97905a
commit fa8861d6a1
6 changed files with 69 additions and 1 deletions

View file

@ -96,5 +96,9 @@ func get_total_distance():
return lap_distance + last_offset
func game_over():
running = false
$player/death_sound.play()
print_debug("final score: ", get_total_distance())
await get_tree().create_timer(3).timeout
get_tree().reload_current_scene() #temp