[gd_scene format=3 uid="uid://j7gmlgd0dgn"]

[ext_resource type="Texture2D" uid="uid://dik51qdl4ixco" path="res://sprites/glass_shards_packed.png" id="1_6ro5i"]
[ext_resource type="Script" uid="uid://bbtafofyupffs" path="res://scenes/enemy_shards.gd" id="1_yu0xq"]
[ext_resource type="Script" uid="uid://whayoa6gwn0u" path="res://scenes/shards.gd" id="2_1se2b"]
[ext_resource type="Shader" uid="uid://x02irwg8ynvp" path="res://shaders/pixel_highlight.gdshader" id="3_bw53u"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_l2u7i"]
shader = ExtResource("3_bw53u")
shader_parameter/speed = 1.0
shader_parameter/line_width = 0.15
shader_parameter/line_color = Color(1, 1, 1, 1)
shader_parameter/pause_duration = 0.15
shader_parameter/offset = 2.0
shader_parameter/pixelate_line = 1

[sub_resource type="Animation" id="Animation_6ro5i"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(27, -48)]
}

[sub_resource type="Animation" id="Animation_yu0xq"]
resource_name = "patrol"
length = 2.0
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.033333335, 2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(27, -48), Vector2(105.333336, -130.66667)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_1se2b"]
_data = {
&"RESET": SubResource("Animation_6ro5i"),
&"patrol": SubResource("Animation_yu0xq")
}

[sub_resource type="ShaderMaterial" id="ShaderMaterial_bnwne"]
shader = ExtResource("3_bw53u")
shader_parameter/speed = 1.0
shader_parameter/line_width = 0.15
shader_parameter/line_color = Color(1, 1, 1, 1)
shader_parameter/pause_duration = 0.15
shader_parameter/offset = 2.0
shader_parameter/pixelate_line = 1

[sub_resource type="Animation" id="Animation_bw53u"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-14.666667, -36)]
}

[sub_resource type="Animation" id="Animation_l2u7i"]
resource_name = "patrol"
length = 4.0
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 3.8333333, 3.9666667),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(-14.666667, -36), Vector2(-40, -58.666668), Vector2(-85.333336, -90.66667)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_bnwne"]
_data = {
&"RESET": SubResource("Animation_bw53u"),
&"patrol": SubResource("Animation_l2u7i")
}

[sub_resource type="Animation" id="Animation_3jlmk"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-24, -14)]
}

[sub_resource type="Animation" id="Animation_n0ncd"]
resource_name = "patrol"
length = 2.0
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1.9666667),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(-24, -14), Vector2(-124, -14)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_8olg8"]
_data = {
&"RESET": SubResource("Animation_3jlmk"),
&"patrol": SubResource("Animation_n0ncd")
}

[sub_resource type="Animation" id="Animation_ul3we"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(27, -19)]
}

[sub_resource type="Animation" id="Animation_4y33j"]
resource_name = "patrol"
length = 1.5
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(27, -19), Vector2(122.66667, -19)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_awbo5"]
_data = {
&"RESET": SubResource("Animation_ul3we"),
&"patrol": SubResource("Animation_4y33j")
}

[sub_resource type="Animation" id="Animation_7s70c"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-1, 14)]
}

[sub_resource type="Animation" id="Animation_sd7ug"]
resource_name = "patrol"
length = 2.0
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 2),
"transitions": PackedFloat32Array(0.25000003, 2.143551),
"update": 0,
"values": [Vector2(-1, 14), Vector2(-72, 34.666668)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_dmrvj"]
_data = {
&"RESET": SubResource("Animation_7s70c"),
&"patrol": SubResource("Animation_sd7ug")
}

[sub_resource type="Animation" id="Animation_c6ehs"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(16, 37)]
}

[sub_resource type="Animation" id="Animation_ieuki"]
resource_name = "patrol"
length = 2.75
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.033333335, 2.7333333),
"transitions": PackedFloat32Array(0.24999996, 1),
"update": 0,
"values": [Vector2(16, 37), Vector2(76, 21.333332)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_bg1f8"]
_data = {
&"RESET": SubResource("Animation_c6ehs"),
&"patrol": SubResource("Animation_ieuki")
}

[sub_resource type="Animation" id="Animation_rsb42"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-18, 40)]
}

[sub_resource type="Animation" id="Animation_ee5xp"]
resource_name = "patrol"
length = 3.0
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 2.9666667),
"transitions": PackedFloat32Array(0.4061259, 0.20306315),
"update": 0,
"values": [Vector2(-18, 40), Vector2(-52, 73.333336)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_a2ego"]
_data = {
&"RESET": SubResource("Animation_rsb42"),
&"patrol": SubResource("Animation_ee5xp")
}

[node name="EnemyShards" type="Node2D" unique_id=288811575]
visible = false
scale = Vector2(0.75, 0.75)
script = ExtResource("1_yu0xq")

[node name="Shard 7a" type="Area2D" parent="." unique_id=2082596482 groups=["enemies", "shards"]]
position = Vector2(27, -48)
script = ExtResource("2_1se2b")

[node name="Sprite2D" type="Sprite2D" parent="Shard 7a" unique_id=1293357619]
material = SubResource("ShaderMaterial_l2u7i")
texture = ExtResource("1_6ro5i")
region_enabled = true
region_rect = Rect2(236, 0, 38, 36)

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shard 7a" unique_id=901900924]
position = Vector2(-0.33333302, 0)
scale = Vector2(0.9, 0.815)
polygon = PackedVector2Array(-17.333334, 17.333332, 16, -2.666668, 16, -16, -6.666668, -16)

[node name="AnimationPlayer" type="AnimationPlayer" parent="Shard 7a" unique_id=1249901448]
libraries/ = SubResource("AnimationLibrary_1se2b")
autoplay = &"patrol"
speed_scale = 0.768

[node name="Shard 6a" type="Area2D" parent="." unique_id=1610872105 groups=["enemies", "shards"]]
position = Vector2(-14.666667, -36)
script = ExtResource("2_1se2b")

[node name="Sprite2D" type="Sprite2D" parent="Shard 6a" unique_id=1377882733]
material = SubResource("ShaderMaterial_bnwne")
position = Vector2(0, -2)
texture = ExtResource("1_6ro5i")
region_enabled = true
region_rect = Rect2(94, 0, 70, 56)

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shard 6a" unique_id=910049206]
position = Vector2(-9.333335, -8.000001)
scale = Vector2(0.9, 0.815)
polygon = PackedVector2Array(0, 15.873028, 17.240612, 26.455048, 31.607788, -15.873032, -17.240612, -15.873032, -17.240612, 5.291008)

[node name="AnimationPlayer" type="AnimationPlayer" parent="Shard 6a" unique_id=6479119]
libraries/ = SubResource("AnimationLibrary_bnwne")
autoplay = &"patrol"
speed_scale = 0.768

[node name="Shard 5a" type="Area2D" parent="." unique_id=1066911643 groups=["enemies", "shards"]]
position = Vector2(-24, -14)
script = ExtResource("2_1se2b")

[node name="Sprite2D" type="Sprite2D" parent="Shard 5a" unique_id=586563828]
material = SubResource("ShaderMaterial_l2u7i")
texture = ExtResource("1_6ro5i")
region_enabled = true
region_rect = Rect2(226, 48, 48, 40)

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shard 5a" unique_id=1528118020]
position = Vector2(-8, -2)
scale = Vector2(0.9, 0.815)
polygon = PackedVector2Array(-14.666668, -16, -14.666668, 20, 32, 8)

[node name="AnimationPlayer" type="AnimationPlayer" parent="Shard 5a" unique_id=419906886]
libraries/ = SubResource("AnimationLibrary_8olg8")
autoplay = &"patrol"
speed_scale = 0.768

[node name="Shard 4a" type="Area2D" parent="." unique_id=1400249441 groups=["enemies", "shards"]]
position = Vector2(27, -19)
script = ExtResource("2_1se2b")

[node name="Sprite2D" type="Sprite2D" parent="Shard 4a" unique_id=1098571076]
material = SubResource("ShaderMaterial_l2u7i")
texture = ExtResource("1_6ro5i")
region_enabled = true
region_rect = Rect2(0, 46, 54, 68)

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shard 4a" unique_id=138889232]
position = Vector2(5, -3.6666667)
scale = Vector2(0.9, 0.815)
polygon = PackedVector2Array(16, 16, 16, 36, -29.333334, 12.000001, -21.333332, -8, 14.666668, -28)

[node name="AnimationPlayer" type="AnimationPlayer" parent="Shard 4a" unique_id=2025454166]
libraries/ = SubResource("AnimationLibrary_awbo5")
autoplay = &"patrol"
speed_scale = 0.768

[node name="Shard 3a" type="Area2D" parent="." unique_id=1325375019 groups=["enemies", "shards"]]
position = Vector2(-1, 14)
script = ExtResource("2_1se2b")

[node name="Sprite2D" type="Sprite2D" parent="Shard 3a" unique_id=1177483202]
material = SubResource("ShaderMaterial_l2u7i")
texture = ExtResource("1_6ro5i")
region_enabled = true
region_rect = Rect2(0, 0, 93, 46)

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shard 3a" unique_id=1103906458]
scale = Vector2(0.9, 0.815)
polygon = PackedVector2Array(-20.333334, 20.666668, 43.666668, 2, 1, -22, -45.666668, -8.666666, -45.666668, 2, -20.333334, 20.666668)

[node name="AnimationPlayer" type="AnimationPlayer" parent="Shard 3a" unique_id=156197660]
libraries/ = SubResource("AnimationLibrary_dmrvj")
autoplay = &"patrol"
speed_scale = 0.768

[node name="Shard 2a" type="Area2D" parent="." unique_id=303720937 groups=["enemies", "shards"]]
position = Vector2(16, 37)
script = ExtResource("2_1se2b")

[node name="Sprite2D" type="Sprite2D" parent="Shard 2a" unique_id=699252441]
material = SubResource("ShaderMaterial_l2u7i")
position = Vector2(-2, 4)
texture = ExtResource("1_6ro5i")
region_enabled = true
region_rect = Rect2(166, 0, 68, 48)

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shard 2a" unique_id=1209273661]
position = Vector2(16, -1)
scale = Vector2(0.9, 0.815)
polygon = PackedVector2Array(17.333336, 17.333336, 17.333336, 28, -18.666666, 28, -49.333336, 1.3333359, 17.333336, -17.333332)

[node name="AnimationPlayer" type="AnimationPlayer" parent="Shard 2a" unique_id=791849802]
libraries/ = SubResource("AnimationLibrary_bg1f8")
autoplay = &"patrol"
speed_scale = 0.768

[node name="Shard 1a" type="Area2D" parent="." unique_id=1571154045 groups=["enemies", "shards"]]
position = Vector2(-18, 40)
script = ExtResource("2_1se2b")

[node name="Sprite2D" type="Sprite2D" parent="Shard 1a" unique_id=1796506745]
material = SubResource("ShaderMaterial_l2u7i")
texture = ExtResource("1_6ro5i")
region_enabled = true
region_rect = Rect2(164, 48, 62, 48)

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shard 1a" unique_id=1448077931]
position = Vector2(-12.666667, 8)
scale = Vector2(0.9, 0.815)
polygon = PackedVector2Array(-17.333332, 16, 42.666668, 17.333336, -16, -30.666666)

[node name="AnimationPlayer" type="AnimationPlayer" parent="Shard 1a" unique_id=455180039]
libraries/ = SubResource("AnimationLibrary_a2ego")
autoplay = &"patrol"
