Made some changes :)
This commit is contained in:
parent
038935709f
commit
8f6a068eba
76 changed files with 889 additions and 36 deletions
24
objects/hud/hud.gd
Normal file
24
objects/hud/hud.gd
Normal file
|
@ -0,0 +1,24 @@
|
|||
extends Control
|
||||
|
||||
onready var gold_counter = $GoldCounter
|
||||
onready var shard_counter = $ShardCounter
|
||||
onready var red_star = $RedStar
|
||||
onready var yellow_star = $YellowStar
|
||||
onready var green_star = $GreenStar
|
||||
onready var blue_star = $BlueStar
|
||||
onready var magenta_star = $MagentaStar
|
||||
onready var score_counter = $ScoreCounter
|
||||
|
||||
func _physics_process(delta):
|
||||
#Gold Counter
|
||||
gold_counter.text = "%03d" % Game.golds
|
||||
#Shard Counter
|
||||
shard_counter.text = "%02d" % Game.shards
|
||||
#Star Counter
|
||||
red_star.visible = Game.stars[0]
|
||||
yellow_star.visible = Game.stars[1]
|
||||
green_star.visible = Game.stars[2]
|
||||
blue_star.visible = Game.stars[3]
|
||||
magenta_star.visible = Game.stars[4]
|
||||
#Score Counter
|
||||
score_counter.text = "%06d" % Game.score
|
Loading…
Add table
Add a link
Reference in a new issue