game.gd cleaning and partial results screen implementation

This commit is contained in:
Haze Weathers 2023-09-10 19:28:42 -04:00
parent b126484109
commit e2b3db0b93
16 changed files with 425 additions and 436 deletions

View file

@ -31,11 +31,10 @@ func _on_Area2D_body_entered(body):
if body.is_in_group("player"):
Audio.play_sound(Audio.a_star,Audio.ac_collectible)
Game.score += 100
Game.stars[color] = true
Game.stars_collected[color] = true
#5 Star reward
if Game.stars[0] && Game.stars[1] && Game.stars[2] && Game.stars[3] && Game.stars[4]:
if Game.stars == 5:
Audio.play_shard_sound()
Game.shards += 1
Game.shards_collected[4] = true
Game.score += 500
queue_free()