saving and level list

This commit is contained in:
pennyrigate 2023-01-07 03:02:26 -05:00
parent 38ef040ae9
commit 39a7eb14b4
13 changed files with 128 additions and 52 deletions

View file

@ -20,7 +20,7 @@ func _physics_process(delta):
#Gold Counter
gold_counter.text = "%02d" % Game.golds
#Shard Counter
shard_counter.text = "%02d" % Game.shards
shard_counter.text = str(Game.shards)
#Star Counter
red_star.visible = Game.stars[0]
yellow_star.visible = Game.stars[1]
@ -28,7 +28,7 @@ func _physics_process(delta):
blue_star.visible = Game.stars[3]
magenta_star.visible = Game.stars[4]
#Score Counter
score_counter.text = "%06d" % Game.score
score_counter.text = "%05d" % Game.score
#Arrow Counter
arrow_counter.text = str(Game.arrows)
##TOUCH UP LATER
@ -38,10 +38,4 @@ func _physics_process(delta):
high_counter.text = str("HIGH:") + str("%06d" % Game.high_score)
##Timer
Game.time += delta
var minutes = str(floor(Game.time / 60))
var seconds = floor(fmod(Game.time,60))
var milliseconds := floor(fmod(Game.time, 1) * 100)
if Game.time < 600:
time_counter.text = minutes + ":" + ("%02d" % seconds) + ":" + ("%02d" % milliseconds)
else:
time_counter.text = "9:59:99"
time_counter.text = Game.timeify(Game.time)