wiring up

This commit is contained in:
2026-05-06 23:25:39 -04:00
parent cc051a1e15
commit 586dc8860c
17 changed files with 226 additions and 196 deletions

View File

@@ -21,9 +21,3 @@ func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "Wistfully, you stare out over the ocean, wishing you could go home and see your family again. Unfortunately, reality sets in, and you remember your difficult situation. Turning your head, you look eastward toward a meadowland covered with wildflowers, and heave a big sigh of sadness.")
).build(self, "_on_script_complete"))
func _on_cliff_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "The cliffs are high and jagged, looming over the turbulent ocean below. It's a dangerous place to stand too close to the edge.")
).build(self, "_on_script_complete"))

View File

@@ -1,17 +1,15 @@
[gd_scene load_steps=8 format=3 uid="uid://3eh8ys3v25m45"]
[gd_scene format=3 uid="uid://bcm5ufn44qits"]
[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="Scene" unique_id=623100937 instance=ExtResource("1_fcvak")]
[node name="bg" parent="." index="0"]
texture = ExtResource("2_xrxwv")
@@ -19,7 +17,7 @@ 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")]
[node name="kq4_020_meadow" parent="." index="5" unique_id=1414663836 instance=ExtResource("4_8xjvi")]
polygon = PackedVector2Array(1821, 506, 1756, 1110, 2122, 1104, 2067, 511)
appear_at_node = "kq4_019_coastal_cliffs"
target = "uid://w4xpm5qeo45d"
@@ -31,7 +29,7 @@ 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")]
[node name="kq4_025_beach_at_river_delta" parent="." index="6" unique_id=1146574825 instance=ExtResource("4_8xjvi")]
polygon = PackedVector2Array(999, 905, 2014, 941, 1973, 1208, 938, 1204)
appear_at_node = "kq4_019_coastal_cliffs"
target = "uid://3vcewxyhbqica"
@@ -43,19 +41,19 @@ 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)
[node name="kq4_013_beach" parent="." index="7" unique_id=1879394954 instance=ExtResource("4_8xjvi")]
polygon = PackedVector2Array(652, 272, 918, 455, 1155, 577, 1558, 434, 1600, 100)
appear_at_node = "kq4_019_coastal_cliffs"
target = "uid://d4a2d0rfqnmmo"
label = "Beach"
[node name="entrance" parent="kq4_013_beach" index="0"]
position = Vector2(1400, 300)
position = Vector2(1640, 549)
[node name="exit" parent="kq4_013_beach" index="1"]
position = Vector2(1400, 150)
position = Vector2(1442, 490)
[node name="kq4_031_open_ocean" parent="." index="8" instance=ExtResource("4_8xjvi")]
[node name="kq4_031_open_ocean" parent="." index="8" unique_id=1631567041 instance=ExtResource("4_8xjvi")]
polygon = PackedVector2Array(100, 400, 200, 500, 400, 500, 500, 400)
appear_at_node = "kq4_019_coastal_cliffs"
target = "uid://2f7c49hpkducc"
@@ -67,21 +65,11 @@ 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_013_beach" to="." method="_on_beach_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"]