78 lines
3.8 KiB
Plaintext
78 lines
3.8 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://b7jsmr2d577vv"]
|
|
|
|
[ext_resource type="Script" path="res://scenes/pasture/pasture.gd" id="1"]
|
|
[ext_resource type="Script" path="res://SetPiece_.gd" id="2_j6lln"]
|
|
[ext_resource type="Script" path="res://ScalePoint_.gd" id="3_4rmn0"]
|
|
[ext_resource type="Texture2D" uid="uid://2hp3t462scpl" path="res://scenes/pasture/pasture.png" id="4"]
|
|
[ext_resource type="Texture2D" uid="uid://but2alv1h34lc" path="res://scenes/pasture/hill.png" id="5"]
|
|
[ext_resource type="Texture2D" uid="uid://bkowd5pnp4q31" path="res://scenes/pasture/stump2__foreground_.png" id="6"]
|
|
|
|
[sub_resource type="NavigationPolygon" id="NavigationPolygon_xkqpb"]
|
|
vertices = PackedVector2Array(1246, 732, 1040, 724, 982, 650, 1641, 547, 1337, 694, 1834, 850, 1994, 878, 1938, 1040, 1471, 1011, 1833, 850, 1337, 709, 1343, 935, 1249, 342, 1508, 229, 1536, 323, 1006, 382, 975, 365, 971, 424, 1006, 400, 1380, 478, 1379, 478, 1507, 442, 1507, 443, 1641, 530, 1867, 556, 1617, 581)
|
|
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4), PackedInt32Array(5, 6, 7, 8, 9), PackedInt32Array(10, 9, 8, 11, 0), PackedInt32Array(12, 13, 14), PackedInt32Array(12, 14, 15, 16), PackedInt32Array(17, 16, 15, 18), PackedInt32Array(19, 20, 17, 18, 21, 22), PackedInt32Array(23, 19, 22, 24), PackedInt32Array(3, 23, 24), PackedInt32Array(3, 24, 25), PackedInt32Array(4, 10, 0), PackedInt32Array(3, 25, 4)])
|
|
outlines = Array[PackedVector2Array]([PackedVector2Array(1336, 943, 1468, 1021, 1945, 1051, 2007, 870, 1836, 840, 1347, 701, 1619, 591, 1918, 562, 1510, 433, 1016, 391, 1550, 332, 1515, 216, 1247, 332, 966, 356, 961, 433, 1378, 488, 1631, 538, 964, 643, 1035, 734, 1240, 742)])
|
|
source_geometry_group_name = &"navigation_polygon_source_group"
|
|
|
|
[node name="background" type="Node2D"]
|
|
y_sort_enabled = true
|
|
script = ExtResource("1")
|
|
|
|
[node name="farmhouse-exit-point" type="Node2D" parent="."]
|
|
position = Vector2(1512, 267)
|
|
scale = Vector2(0.5, 0.5)
|
|
|
|
[node name="house-exit-point" type="Node2D" parent="."]
|
|
position = Vector2(1807, 987)
|
|
|
|
[node name="house_exit" type="Polygon2D" parent="." groups=["set-piece"]]
|
|
position = Vector2(-111.45, 58.0123)
|
|
scale = Vector2(0.529299, 0.483506)
|
|
color = Color(1, 1, 1, 0.262745)
|
|
polygon = PackedVector2Array(2898.33, 1688.33, 2797, 2201, 3432.5, 2221.25, 4123.28, 2103.36, 4102.5, 2113.75, 4092.5, 1690)
|
|
script = ExtResource("2_j6lln")
|
|
label = "To house"
|
|
|
|
[node name="farmhouse_exit" type="Polygon2D" parent="." groups=["set-piece"]]
|
|
position = Vector2(355, -517)
|
|
scale = Vector2(0.323298, 0.406096)
|
|
color = Color(1, 1, 1, 0.262745)
|
|
polygon = PackedVector2Array(2775.83, 1920.83, 2938.57, 2175.71, 3430, 2164.29, 3686.5, 2052.5, 3993.5, 1847.5, 3830.5, 1706.5, 3430.83, 1609.17, 3207.5, 1565.83, 2914.17, 1689.17, 2813.5, 1744.5)
|
|
script = ExtResource("2_j6lln")
|
|
label = "To farmhouse"
|
|
|
|
[node name="StartScalePoint" type="Node2D" parent="."]
|
|
position = Vector2(1355, 257)
|
|
script = ExtResource("3_4rmn0")
|
|
target_scale = 0.25
|
|
|
|
[node name="EndScalePoint" type="Node2D" parent="."]
|
|
position = Vector2(1339, 1057)
|
|
script = ExtResource("3_4rmn0")
|
|
target_scale = 0.75
|
|
|
|
[node name="bg" type="Sprite2D" parent="."]
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("4")
|
|
centered = false
|
|
metadata/_edit_lock_ = true
|
|
|
|
[node name="Stump" type="Sprite2D" parent="."]
|
|
position = Vector2(1555, 536)
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("6")
|
|
offset = Vector2(-549, -148)
|
|
|
|
[node name="Hill" type="Sprite2D" parent="."]
|
|
position = Vector2(1021, 381)
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("5")
|
|
offset = Vector2(741, -361)
|
|
|
|
[node name="pathfind" type="NavigationRegion2D" parent="."]
|
|
z_index = 1
|
|
position = Vector2(10, -1)
|
|
navigation_polygon = SubResource("NavigationPolygon_xkqpb")
|
|
|
|
[connection signal="interacted" from="house_exit" to="." method="_on_house_exit_interacted"]
|
|
[connection signal="interacted" from="farmhouse_exit" to="." method="_on_forest_exit_interacted"]
|