Added death "animation"

This commit is contained in:
KingGurke 2023-10-01 21:22:37 +02:00
parent 40cec00116
commit 131f2472b7
2 changed files with 41 additions and 37 deletions

View file

@ -97,6 +97,7 @@ func get_total_distance():
func game_over():
running = false
player.dead = true
$player/death_sound.play()
print_debug("final score: ", get_total_distance())
await get_tree().create_timer(3).timeout