This commit is contained in:
Tabby 2025-09-03 12:14:08 +10:00
parent 077a53d911
commit 6ce339b430
9 changed files with 252 additions and 21 deletions

View file

@ -13,6 +13,7 @@ var player_mode : bool = false
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
die.connect(end_game)
player_mode = false
pass # Replace with function body.
@ -22,5 +23,6 @@ func _process(delta: float) -> void:
player_mode = !player_mode
func end_game():
player_mode = false
print("i die")
get_tree().get_root().process_mode = Node.PROCESS_MODE_DISABLED