added saving

This commit is contained in:
pennyrigate 2023-01-03 20:52:30 -05:00
parent 1ca21d438f
commit 969364ebce
40 changed files with 625 additions and 88 deletions

View file

@ -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()