12 lines
211 B
GDScript3
12 lines
211 B
GDScript3
|
extends Area2D
|
||
|
|
||
|
|
||
|
func _on_Pit_body_entered(body):
|
||
|
print("player fell down pit")
|
||
|
$AudioStreamPlayer2D.play()
|
||
|
|
||
|
|
||
|
func _on_AudioStreamPlayer2D_finished():
|
||
|
get_tree().change_scene("res://ui/GameOverScreen.tscn")
|
||
|
|