need to sleep
This commit is contained in:
parent
dafae35985
commit
211a5e074b
13 changed files with 381 additions and 15 deletions
2
uiman.gd
2
uiman.gd
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue