Gameover menu
This commit is contained in:
parent
175bd597c5
commit
b26c4a4be0
7 changed files with 80 additions and 1 deletions
|
@ -38,3 +38,7 @@ func get_door_with_connection(outgoingDoor):
|
|||
return door
|
||||
|
||||
return null
|
||||
|
||||
func _on_Player_died():
|
||||
yield(get_tree().create_timer(1.0), "timeout")
|
||||
get_tree().change_scene("res://Scenes/Menus/GameOverMenu.tscn")
|
||||
|
|
|
@ -23,5 +23,7 @@ remote_path = NodePath("../../Camera")
|
|||
[node name="Level_00" parent="." instance=ExtResource( 1 )]
|
||||
position = Vector2( -132, -32 )
|
||||
|
||||
[connection signal="died" from="Player" to="." method="_on_Player_died"]
|
||||
|
||||
[editable path="Player"]
|
||||
[editable path="Player/Hurtbox"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue