[gd_scene load_steps=7 format=2]

[ext_resource path="res://Sprites/Enemies/DarkMatter_barrier.png" type="Texture" id=1]
[ext_resource path="res://Enemies/Dark Matter.gd" type="Script" id=2]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 5.55527, 4.93821 )

[sub_resource type="CircleShape2D" id=2]
radius = 55.4916

[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 5.48996, 5.06427 )

[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 5.50204, 4.89798 )

[node name="Dark Matter" type="KinematicBody2D"]
collision_layer = 2
collision_mask = 6
script = ExtResource( 2 )

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

[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )

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

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

[node name="Star_detect" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 4

[node name="CollisionShape2D" type="CollisionShape2D" parent="Star_detect"]
shape = SubResource( 3 )

[node name="Timer" type="Timer" parent="."]

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

[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
shape = SubResource( 4 )

[connection signal="body_entered" from="Player_detect" to="." method="_on_Player_detect_body_entered"]
[connection signal="body_exited" from="Player_detect" to="." method="_on_Player_detect_body_exited"]
[connection signal="body_entered" from="Star_detect" to="." method="_on_Star_detect_body_entered"]
[connection signal="body_exited" from="Star_detect" to="." method="_on_Star_detect_body_exited"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
