Snake/apple_pit_man.gd

14 lines
353 B
GDScript3
Raw Normal View History

2025-09-02 23:17:10 +10:00
extends Node2D
@export var snake_man : Node2D
@export var count : Label
# 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:
count.text = str(snake_man.pit_apples)