Added death "animation"
This commit is contained in:
parent
40cec00116
commit
131f2472b7
2 changed files with 41 additions and 37 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue