[gd_scene load_steps=7 format=2]

[ext_resource path="res://Enemy.gd" type="Script" id=1]
[ext_resource path="res://damage_enemy.tscn" type="PackedScene" id=2]
[ext_resource path="res://enemiplayerdetect.gd" type="Script" id=3]

[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 120, 10 )

[sub_resource type="RectangleShape2D" id=1]

[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 320, 100 )

[node name="Enemy" type="KinematicBody2D" groups=["enemy"]]
collision_layer = 12
collision_mask = 0
script = ExtResource( 1 )
tickrate = 3

[node name="damage_enemy" parent="." instance=ExtResource( 2 )]
monitorable = false
damage = -10

[node name="CollisionShape2D" parent="damage_enemy" index="0"]
disabled = true

[node name="damage_enemy2" parent="." instance=ExtResource( 2 )]
monitorable = false
script = ExtResource( 3 )

[node name="CollisionShape2D" parent="damage_enemy2" index="0"]
shape = SubResource( 3 )

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

[node name="Area2D" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 2

[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource( 2 )

[connection signal="body_entered" from="damage_enemy2" to="damage_enemy2" method="_on_damage_enemy2_body_entered"]
[connection signal="body_exited" from="damage_enemy2" to="damage_enemy2" method="_on_damage_enemy2_body_exited"]
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]

[editable path="damage_enemy"]
[editable path="damage_enemy2"]
