forked from team-sg/hero-mark-2
renamed game.golds into game.keys
This commit is contained in:
parent
bc57ba4171
commit
51a6a6c10d
7 changed files with 14 additions and 15 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue