renamed game.golds into game.keys

This commit is contained in:
pennyrigate 2023-05-08 03:16:41 -04:00
parent bc57ba4171
commit 51a6a6c10d
7 changed files with 14 additions and 15 deletions

View file

@ -9,7 +9,7 @@ func _ready():
func _on_Area2D_area_entered(area):
#Collect
if area.is_in_group("player_hitbox"):
Game.golds += value
Game.keys += value
Game.score += 5
Audio.play_sound(Audio.a_gold,Audio.ac_collectible)
queue_free()