renamed game.golds into game.keys
This commit is contained in:
parent
bc57ba4171
commit
51a6a6c10d
7 changed files with 14 additions and 15 deletions
|
@ -21,7 +21,7 @@ func _ready():
|
|||
|
||||
func _physics_process(delta):
|
||||
#Open
|
||||
if Game.golds >= cost: open = true
|
||||
if Game.keys >= cost: open = true
|
||||
if open == true:
|
||||
sprite.region_rect.size.y -= 1
|
||||
if sprite.region_rect.size.y < 1: queue_free()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue