added saving
This commit is contained in:
parent
1ca21d438f
commit
969364ebce
40 changed files with 625 additions and 88 deletions
|
@ -1,6 +1,7 @@
|
|||
extends Node2D
|
||||
|
||||
export var value = 1
|
||||
export var number = 0 #Used for saving which specific shards collected
|
||||
|
||||
func _ready():
|
||||
$AnimationPlayer.play("glow")
|
||||
|
@ -11,4 +12,5 @@ func _on_Area2D_area_entered(area):
|
|||
Game.play_sound(Game.a_shard,Game.ac_collectible)
|
||||
Game.score += 500
|
||||
Game.shards += value
|
||||
Game.shards_collected[number] = true
|
||||
queue_free()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue