forked from team-sg/hero-mark-2
game.gd cleaning and partial results screen implementation
This commit is contained in:
parent
b126484109
commit
e2b3db0b93
16 changed files with 425 additions and 436 deletions
|
@ -54,11 +54,11 @@ func _physics_process(delta):
|
|||
#Shard Counter
|
||||
shard_counter.text = str(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]
|
||||
red_star.visible = Game.stars_collected[0]
|
||||
yellow_star.visible = Game.stars_collected[1]
|
||||
green_star.visible = Game.stars_collected[2]
|
||||
blue_star.visible = Game.stars_collected[3]
|
||||
magenta_star.visible = Game.stars_collected[4]
|
||||
#Score Counter
|
||||
score_counter.text = "%05d" % Game.score
|
||||
#Arrow Counter
|
||||
|
@ -74,8 +74,6 @@ func _physics_process(delta):
|
|||
lives_counter.modulate = bonus_color
|
||||
else:
|
||||
lives_counter.modulate = Color.white
|
||||
#High counter
|
||||
high_counter.text = str("HIGH:") + str("%06d" % Game.high_score)
|
||||
##Timer
|
||||
Game.time += delta
|
||||
time_counter.text = Game.timeify(Game.time)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue