cooking again

This commit is contained in:
Tabby 2025-09-02 23:17:10 +10:00
parent b0b210a8be
commit dafae35985
14 changed files with 218 additions and 10 deletions

View file

@ -2,6 +2,7 @@ extends Node
signal activate_seg(int)
signal eat_apple
signal die #trigger game over logic
var current_seg : Node2D
var cur_id : int = 0
@ -9,6 +10,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)
pass # Replace with function body.
@ -16,3 +18,7 @@ func _ready() -> void:
func _process(delta: float) -> void:
if (Input.is_action_just_pressed("test_switch_cam")):
player_mode = !player_mode
func end_game():
print("i die")
get_tree().get_root().process_mode = Node.PROCESS_MODE_DISABLED