forked from team-sg/hero-mark-2
11 lines
228 B
GDScript
11 lines
228 B
GDScript
extends Node2D
|
|
|
|
export var value = 1
|
|
|
|
func _on_Area2D_area_entered(area):
|
|
#Collect
|
|
if area.is_in_group("player"):
|
|
Game.arrows += value
|
|
Game.score += 25
|
|
Audio.play_sound(Audio.a_arrow,Audio.ac_collectible)
|
|
queue_free()
|