forked from team-sg/hero-mark-2
added bow
This commit is contained in:
parent
5d01f40535
commit
2d3fc72ebe
50 changed files with 610 additions and 151 deletions
11
objects/collectibles/arrow.gd
Normal file
11
objects/collectibles/arrow.gd
Normal file
|
@ -0,0 +1,11 @@
|
|||
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
|
||||
Game.play_sound(Game.a_arrow,Game.ac_collectible)
|
||||
queue_free()
|
Loading…
Add table
Add a link
Reference in a new issue