[gd_scene load_steps=3 format=2]

[sub_resource type="GDScript" id=2]
script/source = "extends KinematicBody2D
var id = 0
func damage( damage, attacker):
	get_parent().dict.arrayvida[id] -= damage
	get_parent().death_count(attacker)
#	get_node('CollisionShape2D').disabled = true
#	queue_free()
#	print(get_parent().dict.arrayvida[id])
	pass
"

[sub_resource type="RectangleShape2D" id=1]

[node name="Enemy" type="KinematicBody2D"]
collision_layer = 4
collision_mask = 0
script = SubResource( 2 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
