first commit
This commit is contained in:
commit
096ebe5aa4
275 changed files with 3937 additions and 0 deletions
15
objects/collectibles/star.gd
Normal file
15
objects/collectibles/star.gd
Normal file
|
@ -0,0 +1,15 @@
|
|||
extends Node2D
|
||||
|
||||
export var value = 1
|
||||
|
||||
func _ready():
|
||||
#Sync all coinframes
|
||||
$AnimatedSprite.play()
|
||||
|
||||
func _on_Area2D_area_entered(area):
|
||||
#Collect
|
||||
if area.is_in_group("player"):
|
||||
Game.stars += value
|
||||
#5 Star reward
|
||||
if Game.stars == 5: Game.shards += 1
|
||||
queue_free()
|
Loading…
Add table
Add a link
Reference in a new issue