Snake/router.gd

18 lines
441 B
GDScript3
Raw Normal View History

extends Node
signal activate_seg(int)
var current_seg : Node2D
var cur_id : int = 0
var player_mode : bool = false
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if (Input.is_action_just_pressed("test_switch_cam")):
player_mode = !player_mode