clegg
This commit is contained in:
commit
6a269eb236
97 changed files with 2137 additions and 0 deletions
13
ui/hud.gd
Normal file
13
ui/hud.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends Control
|
||||
|
||||
@onready var fuel_meter = $FuelMeter
|
||||
@onready var score_counter = $ScoreCounter
|
||||
@onready var multiplier_anims = $MultiplierAnims
|
||||
@onready var append_score_anims = $AppendScoreAnims
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
var player = get_owner().get_node("Player")
|
||||
fuel_meter.value = player.fuel
|
||||
score_counter.text = "SCORE " + str(GlobalStats.score)
|
||||
%ScoreMultiplier.text = str(snapped(GlobalStats.score_multiplier, 0.1)) + "x"
|
||||
%ScoreToAdd.text = str(GlobalStats.score_to_add)
|
Loading…
Add table
Add a link
Reference in a new issue