initial commit
This commit is contained in:
commit
35bb9bb38f
46 changed files with 1243 additions and 0 deletions
13
Medpack.gd
Normal file
13
Medpack.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends Node2D
|
||||
|
||||
export var heal_amount : int = 1
|
||||
signal medpack_taken
|
||||
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
func _on_Pickup_body_entered(body):
|
||||
if body.has_method("heal"):
|
||||
body.heal(heal_amount)
|
||||
emit_signal("medpack_taken")
|
||||
queue_free()
|
Loading…
Add table
Add a link
Reference in a new issue