Setup UI canvas, added shield and game start.
This commit is contained in:
parent
e582ed7ec3
commit
ef773a1ec5
11 changed files with 223 additions and 17 deletions
12
ui.gd
Normal file
12
ui.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
extends MarginContainer
|
||||
|
||||
@onready var shield_bar = $HBoxContainer/ShieldBar
|
||||
@onready var score_counter = $HBoxContainer/ScoreCounter
|
||||
|
||||
func update_score(value):
|
||||
score_counter.display_digits(value)
|
||||
|
||||
|
||||
func update_shield(max_value, value):
|
||||
shield_bar.max_value = max_value
|
||||
shield_bar.value = value
|
||||
Loading…
Add table
Add a link
Reference in a new issue