need to sleep

This commit is contained in:
Tabby 2025-09-02 23:54:19 +10:00
parent dafae35985
commit 211a5e074b
13 changed files with 381 additions and 15 deletions

View file

@ -2,6 +2,7 @@ extends Control
@export var food_bar : ProgressBar
@export var snake_manager : Node2D
@export var score_label : Label
# Called when the node enters the scene tree for the first time.
@ -13,3 +14,4 @@ func _ready() -> void:
func _process(delta: float) -> void:
food_bar.max_value = snake_manager.max_food
food_bar.value = snake_manager.food
score_label.text = str(snake_manager.score)