implemented death sounds
This commit is contained in:
parent
d35c97905a
commit
fa8861d6a1
6 changed files with 69 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue