From 6e981e7877d8b277478ad3cffde994686b446153 Mon Sep 17 00:00:00 2001 From: Bryce Date: Tue, 10 Mar 2026 13:29:16 -0700 Subject: [PATCH] Create room 043 (Desert Island) and wire to room 031 - Added kq4_043_desert_island scene with 4 exits (north, east, south, west) to room 031 - Updated room 031 to add transition to room 043 (bidirectional connection) - All 4 exits from room 043 validated with exit checker --- .../kq4_031_open_ocean/kq4_031_open_ocean.gd | 4 + .../kq4_031_open_ocean.tscn | 15 +++ .../kq4_043_desert_island.gd | 6 ++ .../kq4_043_desert_island.tscn | 100 ++++++++++++++++++ .../kq4_043_desert_island.tscn.uid | 1 + .../kq4_placeholder_template.gd.uid | 1 + .../kq4_043_desert_island/pic_043_visual.png | 3 + .../pic_043_visual.png.import | 40 +++++++ 8 files changed, 170 insertions(+) create mode 100644 scenes/kq4_043_desert_island/kq4_043_desert_island.gd create mode 100644 scenes/kq4_043_desert_island/kq4_043_desert_island.tscn create mode 100644 scenes/kq4_043_desert_island/kq4_043_desert_island.tscn.uid create mode 100644 scenes/kq4_043_desert_island/kq4_placeholder_template.gd.uid create mode 100644 scenes/kq4_043_desert_island/pic_043_visual.png create mode 100644 scenes/kq4_043_desert_island/pic_043_visual.png.import diff --git a/scenes/kq4_031_open_ocean/kq4_031_open_ocean.gd b/scenes/kq4_031_open_ocean/kq4_031_open_ocean.gd index 145e719..4e5fba8 100644 --- a/scenes/kq4_031_open_ocean/kq4_031_open_ocean.gd +++ b/scenes/kq4_031_open_ocean/kq4_031_open_ocean.gd @@ -21,6 +21,10 @@ func _on_ocean_near_island_interacted() -> void: $kq4_032_ocean_near_island.default_script(self) +func _on_desert_island_interacted() -> void: + $kq4_043_desert_island.default_script(self) + + func _on_room_looked() -> void: start_main_script(ScriptBuilder.init( ScriptBuilder.narrate("You are swimming in a great ocean. Playful fish leap about you as you swim.") diff --git a/scenes/kq4_031_open_ocean/kq4_031_open_ocean.tscn b/scenes/kq4_031_open_ocean/kq4_031_open_ocean.tscn index fbf253e..f632299 100644 --- a/scenes/kq4_031_open_ocean/kq4_031_open_ocean.tscn +++ b/scenes/kq4_031_open_ocean/kq4_031_open_ocean.tscn @@ -104,6 +104,19 @@ position = Vector2(133, 643) [node name="exit" parent="kq4_032_ocean_near_island" index="1"] position = Vector2(174, 519) +[node name="kq4_043_desert_island" parent="." unique_id=1956756567 instance=ExtResource("4_abc")] +position = Vector2(1766, 74) +polygon = PackedVector2Array(-108, 454, -87, 649, 376, 658, 348, 381) +appear_at_node = "kq4_031_open_ocean" +target = "uid://1y2pnh4dyhcxa" +label = "Desert Island" + +[node name="entrance" parent="kq4_043_desert_island" index="0"] +position = Vector2(24, 565) + +[node name="exit" parent="kq4_043_desert_island" index="1"] +position = Vector2(293, 554) + [node name="south_exit" parent="." unique_id=990092106 instance=ExtResource("4_abc")] position = Vector2(910, 542) polygon = PackedVector2Array(-108, 454, -87, 649, 376, 658, 348, 381) @@ -130,6 +143,7 @@ position = Vector2(-64, 534) [connection signal="interacted" from="kq4_019_coastal_cliffs" to="." method="_on_coastal_cliffs_interacted"] [connection signal="interacted" from="kq4_013_beach" to="." method="_on_beach_13_interacted"] [connection signal="interacted" from="kq4_032_ocean_near_island" to="." method="_on_ocean_near_island_interacted"] +[connection signal="interacted" from="kq4_043_desert_island" to="." method="_on_desert_island_interacted"] [node name="ocean" type="Polygon2D" parent="." groups=["set-piece"]] scale = Vector2(6, 6) @@ -146,5 +160,6 @@ points_resource = ExtResource("5_ocean") [editable path="kq4_019_coastal_cliffs"] [editable path="kq4_013_beach"] [editable path="kq4_032_ocean_near_island"] +[editable path="kq4_043_desert_island"] [editable path="south_exit"] [editable path="west_exit"] diff --git a/scenes/kq4_043_desert_island/kq4_043_desert_island.gd b/scenes/kq4_043_desert_island/kq4_043_desert_island.gd new file mode 100644 index 0000000..6e2224d --- /dev/null +++ b/scenes/kq4_043_desert_island/kq4_043_desert_island.gd @@ -0,0 +1,6 @@ +extends Scene + + +func _on_open_ocean_interacted() -> void: + # All four exits (north, east, south, west) go to room 031 + $kq4_031_open_ocean_north.default_script(self) diff --git a/scenes/kq4_043_desert_island/kq4_043_desert_island.tscn b/scenes/kq4_043_desert_island/kq4_043_desert_island.tscn new file mode 100644 index 0000000..0021e5b --- /dev/null +++ b/scenes/kq4_043_desert_island/kq4_043_desert_island.tscn @@ -0,0 +1,100 @@ +[gd_scene format=3 uid="uid://1y2pnh4dyhcxa"] + +[ext_resource type="Script" path="res://scenes/kq4_043_desert_island/kq4_043_desert_island.gd" id="1_script"] +[ext_resource type="Texture2D" path="res://scenes/kq4_043_desert_island/pic_043_visual.png" id="2_texture"] +[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_scale"] +[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_transition"] + +[sub_resource type="NavigationPolygon" id="NavigationPolygon_ppo6b"] +vertices = PackedVector2Array(366.85156, 1243.1484, -140.97656, 1182.2422, -76.0625, 588.09375, -30.171875, 216.07031, 1221.4063, 226.97656, 1994.1406, 468.39844, 2011.7969, 1321.9766, 1052.7422, 1419.8672, -76.0625, 588.0781) +polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(3, 4, 5, 6, 7, 0), PackedInt32Array(3, 2, 8)]) +outlines = Array[PackedVector2Array]([PackedVector2Array(-39, 206, 1223, 217, 2004, 461, 2022, 1331, 1052, 1430, 365, 1253, -152, 1191, -86, 587)]) + +[node name="background" type="Node2D" unique_id=657573819] +y_sort_enabled = true +script = ExtResource("1_script") + +[node name="bg" type="Sprite2D" parent="." unique_id=874052749] +scale = Vector2(6, 6) +texture = ExtResource("2_texture") +centered = false + +[node name="StartScalePoint" type="Node2D" parent="." unique_id=1640687858] +position = Vector2(1476, 742) +script = ExtResource("3_scale") +target_scale = 0.25 + +[node name="EndScalePoint" type="Node2D" parent="." unique_id=1996763530] +position = Vector2(1408, 1097) +scale = Vector2(0.44, 0.44) +script = ExtResource("3_scale") +target_scale = 0.35 + +[node name="pathfind" type="NavigationRegion2D" parent="." unique_id=1418661203] +position = Vector2(-1, 0) +navigation_polygon = SubResource("NavigationPolygon_ppo6b") + +[node name="default-starting-point" type="Node2D" parent="." unique_id=1018141532] +position = Vector2(194, 819) + +[node name="kq4_031_open_ocean_north" parent="." unique_id=484638394 instance=ExtResource("4_transition")] +position = Vector2(910, -213) +polygon = PackedVector2Array(-108, 454, -87, 649, 376, 658, 348, 381) +appear_at_node = "kq4_043_desert_island" +target = "uid://2f7c49hpkducc" +label = "Open Ocean (North)" + +[node name="entrance" parent="kq4_031_open_ocean_north" index="0"] +position = Vector2(133, 643) + +[node name="exit" parent="kq4_031_open_ocean_north" index="1"] +position = Vector2(174, 519) + +[node name="kq4_031_open_ocean_east" parent="." unique_id=1916756563 instance=ExtResource("4_transition")] +position = Vector2(1766, 74) +polygon = PackedVector2Array(-108, 454, -87, 649, 376, 658, 348, 381) +appear_at_node = "kq4_043_desert_island" +target = "uid://2f7c49hpkducc" +label = "Open Ocean (East)" + +[node name="entrance" parent="kq4_031_open_ocean_east" index="0"] +position = Vector2(24, 565) + +[node name="exit" parent="kq4_031_open_ocean_east" index="1"] +position = Vector2(293, 554) + +[node name="kq4_031_open_ocean_south" parent="." unique_id=990092106 instance=ExtResource("4_transition")] +position = Vector2(910, 542) +polygon = PackedVector2Array(-108, 454, -87, 649, 376, 658, 348, 381) +appear_at_node = "kq4_043_desert_island" +target = "uid://2f7c49hpkducc" +label = "Open Ocean (South)" + +[node name="entrance" parent="kq4_031_open_ocean_south" index="0"] +position = Vector2(118, 514) + +[node name="exit" parent="kq4_031_open_ocean_south" index="1"] +position = Vector2(151, 615) + +[node name="kq4_031_open_ocean_west" parent="." unique_id=1117747814 instance=ExtResource("4_transition")] +position = Vector2(-108, 542) +polygon = PackedVector2Array(-108, 454, -87, 649, 376, 658, 348, 381) +appear_at_node = "kq4_043_desert_island" +target = "uid://2f7c49hpkducc" +label = "Open Ocean (West)" + +[node name="entrance" parent="kq4_031_open_ocean_west" index="0"] +position = Vector2(506, 555) + +[node name="exit" parent="kq4_031_open_ocean_west" index="1"] +position = Vector2(-64, 534) + +[connection signal="interacted" from="kq4_031_open_ocean_north" to="." method="_on_open_ocean_interacted"] +[connection signal="interacted" from="kq4_031_open_ocean_east" to="." method="_on_open_ocean_interacted"] +[connection signal="interacted" from="kq4_031_open_ocean_south" to="." method="_on_open_ocean_interacted"] +[connection signal="interacted" from="kq4_031_open_ocean_west" to="." method="_on_open_ocean_interacted"] + +[editable path="kq4_031_open_ocean_north"] +[editable path="kq4_031_open_ocean_east"] +[editable path="kq4_031_open_ocean_south"] +[editable path="kq4_031_open_ocean_west"] diff --git a/scenes/kq4_043_desert_island/kq4_043_desert_island.tscn.uid b/scenes/kq4_043_desert_island/kq4_043_desert_island.tscn.uid new file mode 100644 index 0000000..068fba0 --- /dev/null +++ b/scenes/kq4_043_desert_island/kq4_043_desert_island.tscn.uid @@ -0,0 +1 @@ +uid://1y2pnh4dyhcxa diff --git a/scenes/kq4_043_desert_island/kq4_placeholder_template.gd.uid b/scenes/kq4_043_desert_island/kq4_placeholder_template.gd.uid new file mode 100644 index 0000000..c13dfde --- /dev/null +++ b/scenes/kq4_043_desert_island/kq4_placeholder_template.gd.uid @@ -0,0 +1 @@ +uid://bk8q2nad4pu44 diff --git a/scenes/kq4_043_desert_island/pic_043_visual.png b/scenes/kq4_043_desert_island/pic_043_visual.png new file mode 100644 index 0000000..0dffc3d --- /dev/null +++ b/scenes/kq4_043_desert_island/pic_043_visual.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72fe542a91b1bc4a0d37ba1faf7469d6915d3c1b45159abff7e3880ce150da5e +size 8674 diff --git a/scenes/kq4_043_desert_island/pic_043_visual.png.import b/scenes/kq4_043_desert_island/pic_043_visual.png.import new file mode 100644 index 0000000..7bc3b0e --- /dev/null +++ b/scenes/kq4_043_desert_island/pic_043_visual.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://1yzlsd51kmcu0" +path="res://.godot/imported/pic_043_visual.png-PLACEHOLDER.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://scenes/kq4_043_desert_island/pic_043_visual.png" +dest_files=["res://.godot/imported/pic_043_visual.png-PLACEHOLDER.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1