[gd_scene load_steps=8 format=3 uid="uid://3eh8ys3v25m45"]

[ext_resource type="PackedScene" uid="uid://ctkmgtcvpnkm8" path="res://TemplateScene.tscn" id="1_fcvak"]
[ext_resource type="Texture2D" uid="uid://blus266j2vw5o" path="res://scenes/kq4_019_coastal_cliffs/ComfyUI_10031_.png" id="2_xrxwv"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_8xjvi"]
[ext_resource type="Resource" uid="uid://375qvwehyok41" path="res://scenes/kq4_019_coastal_cliffs/cliff_polygon.tres" id="5_cliff"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="6_setpiece"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_mt6rs"]
vertices = PackedVector2Array(1387.94, 489.133, 1327.95, 483.813, 1478.27, 476.344, 1461.59, 491.992, 1565.21, 865.289, 1517.97, 816.344, 1652.07, 798.773, 2241.42, 882.602, 1650.95, 650.203, 1559.25, 613.688, 1619.82, 572.758, 1745.49, 546.727, 1904.11, 1452.61, 1052.23, 1257.31, 1078.87, 1074.46, 1460.6, 1000.1, 1997.48, 640.609, 1617.97, 560.313, 1465.3, 503.938)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(4, 5, 6, 7), PackedInt32Array(8, 9, 10, 11), PackedInt32Array(12, 13, 14, 15, 7), PackedInt32Array(7, 15, 4), PackedInt32Array(11, 16, 7, 6, 8), PackedInt32Array(11, 10, 17), PackedInt32Array(18, 11, 17), PackedInt32Array(18, 17, 0), PackedInt32Array(0, 3, 18)])
outlines = Array[PackedVector2Array]([PackedVector2Array(1183, 481, 1505, 465, 1473, 495, 1748, 537, 2003, 632, 2254, 881, 1909, 1464, 1041, 1265, 1070, 1066, 1455, 991, 1552, 866, 1497, 809, 1642, 790, 1641, 657, 1538, 616, 1609, 568, 1386, 499)])

[node name="Scene" instance=ExtResource("1_fcvak")]

[node name="bg" parent="." index="0"]
texture = ExtResource("2_xrxwv")

[node name="pathfind" parent="." index="3"]
navigation_polygon = SubResource("NavigationPolygon_mt6rs")

[node name="kq4_020_meadow" parent="." index="5" instance=ExtResource("4_8xjvi")]
polygon = PackedVector2Array(1821, 506, 1756, 1110, 2122, 1104, 2067, 511)
appear_at_node = "kq4_019_coastal_cliffs"
target = "uid://2yy1t1lic39gp"
label = "Meadow"

[node name="entrance" parent="kq4_020_meadow" index="0"]
position = Vector2(1766, 715)

[node name="exit" parent="kq4_020_meadow" index="1"]
position = Vector2(2048, 766)

[node name="kq4_025_beach_at_river_delta" parent="." index="6" instance=ExtResource("4_8xjvi")]
polygon = PackedVector2Array(999, 905, 2014, 941, 1973, 1208, 938, 1204)
appear_at_node = "kq4_019_coastal_cliffs"
target = "uid://3vcewxyhbqica"
label = "River Delta"

[node name="entrance" parent="kq4_025_beach_at_river_delta" index="0"]
position = Vector2(1734, 906)

[node name="exit" parent="kq4_025_beach_at_river_delta" index="1"]
position = Vector2(1538, 1274)

[node name="kq4_013_beach" parent="." index="7" instance=ExtResource("4_8xjvi")]
polygon = PackedVector2Array(1200, 100, 1300, 200, 1500, 200, 1600, 100)
appear_at_node = "kq4_019_coastal_cliffs"
target = "uid://2bqawc9w4uu59"
label = "Beach"

[node name="entrance" parent="kq4_013_beach" index="0"]
position = Vector2(1400, 300)

[node name="exit" parent="kq4_013_beach" index="1"]
position = Vector2(1400, 150)

[node name="kq4_031_open_ocean" parent="." index="8" instance=ExtResource("4_8xjvi")]
polygon = PackedVector2Array(100, 400, 200, 500, 400, 500, 500, 400)
appear_at_node = "kq4_019_coastal_cliffs"
target = "uid://2f7c49hpkducc"
label = "Open Ocean"

[node name="entrance" parent="kq4_031_open_ocean" index="0"]
position = Vector2(300, 450)

[node name="exit" parent="kq4_031_open_ocean" index="1"]
position = Vector2(150, 450)

[connection signal="interacted" from="kq4_013_beach" to="." method="_on_beach_interacted"]
[connection signal="interacted" from="kq4_020_meadow" to="." method="_on_meadow_interacted"]
[connection signal="interacted" from="kq4_025_beach_at_river_delta" to="." method="_on_beach_at_river_delta_interacted"]
[connection signal="interacted" from="kq4_031_open_ocean" to="." method="_on_open_ocean_interacted"]

[node name="cliff" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(0.467949, 0.467949)
color = Color(0.5, 0.5, 0.5, 0.25)
polygon = PackedVector2Array(4095, 2339, 1631, 2339, 1224, 2312, 300, 890, 3081, 0, 4064, 0, 4095, 549)
script = ExtResource("6_setpiece")
label = "Cliff"
points_resource = ExtResource("5_cliff")

[connection signal="looked" from="cliff" to="." method="_on_cliff_looked"]

[editable path="kq4_020_meadow"]
[editable path="kq4_025_beach_at_river_delta"]
[editable path="kq4_013_beach"]
[editable path="kq4_031_open_ocean"]
