aboutsummaryrefslogtreecommitdiff
path: root/collectables/Apple.gd
blob: 909eaf2452efaed4b4364c77a32c545548dc1a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
extends Node2D

export var health=10
func _ready():
	$AnimationPlayer.play("idle")


func _on_Area2D_body_entered(body):
	if body.entity_type=="PLAYER":
		body.health += health
		queue_free()