-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.gd
More file actions
23 lines (17 loc) · 650 Bytes
/
ui.gd
File metadata and controls
23 lines (17 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
extends CanvasLayer
#@onready var label := $CenterContainer/MarginContainer/VBoxContainer/Label
var label : Label
## Called when the node enters the scene tree for the first time.
func _ready() -> void:
label = $CenterContainer/MarginContainer/VBoxContainer/Label
set_lives_text(5)
#pass # Replace with function body.
func set_lives_text(lives: int):
#while label == null:
print(lives)
label.text = " Lives: "+ str(lives);
## Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta: float) -> void:
#pass
func _on_player_lives_updated(Currntlives: int) -> void:
pass # Replace with function body.