Create room 012 (Haunted Forest) and wire to rooms 006 and 011
- Added kq4_012_haunted_forest scene with north exit to room 006 and west exit to room 011 - Updated room 006 to add south exit to room 012 (bidirectional connection) - Updated room 011 to add target UID for room 012 transition - Room 012 south exit to room 018 omitted (room 018 doesn't exist yet) - All 4 transitions validated with exit checker
This commit is contained in:
@@ -3,3 +3,7 @@ extends Scene
|
||||
|
||||
func _on_forest_grove_interacted() -> void:
|
||||
$kq4_005_forest_grove.default_script(self)
|
||||
|
||||
|
||||
func _on_haunted_forest_interacted() -> void:
|
||||
$kq4_012_haunted_forest.default_script(self)
|
||||
|
||||
@@ -50,6 +50,21 @@ position = Vector2(506, 555)
|
||||
[node name="exit" parent="kq4_005_forest_grove" index="1"]
|
||||
position = Vector2(-64, 534)
|
||||
|
||||
[node name="kq4_012_haunted_forest" 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_006_cave_entrance"
|
||||
target = "uid://2x2iotcho43kp"
|
||||
label = "Haunted Forest"
|
||||
|
||||
[node name="entrance" parent="kq4_012_haunted_forest" index="0"]
|
||||
position = Vector2(118, 514)
|
||||
|
||||
[node name="exit" parent="kq4_012_haunted_forest" index="1"]
|
||||
position = Vector2(151, 615)
|
||||
|
||||
[connection signal="interacted" from="kq4_005_forest_grove" to="." method="_on_forest_grove_interacted"]
|
||||
[connection signal="interacted" from="kq4_012_haunted_forest" to="." method="_on_haunted_forest_interacted"]
|
||||
|
||||
[editable path="kq4_005_forest_grove"]
|
||||
[editable path="kq4_012_haunted_forest"]
|
||||
|
||||
@@ -56,6 +56,7 @@ position = Vector2(151, 615)
|
||||
position = Vector2(1766, 74)
|
||||
polygon = PackedVector2Array(-108, 454, -87, 649, 376, 658, 348, 381)
|
||||
appear_at_node = "kq4_011_enchanted_grove"
|
||||
target = "uid://2x2iotcho43kp"
|
||||
label = "Haunted Forest"
|
||||
|
||||
[node name="entrance" parent="kq4_012_haunted_forest" index="0"]
|
||||
|
||||
9
scenes/kq4_012_haunted_forest/kq4_012_haunted_forest.gd
Normal file
9
scenes/kq4_012_haunted_forest/kq4_012_haunted_forest.gd
Normal file
@@ -0,0 +1,9 @@
|
||||
extends Scene
|
||||
|
||||
|
||||
func _on_cave_entrance_interacted() -> void:
|
||||
$kq4_006_cave_entrance.default_script(self)
|
||||
|
||||
|
||||
func _on_enchanted_grove_interacted() -> void:
|
||||
$kq4_011_enchanted_grove.default_script(self)
|
||||
70
scenes/kq4_012_haunted_forest/kq4_012_haunted_forest.tscn
Normal file
70
scenes/kq4_012_haunted_forest/kq4_012_haunted_forest.tscn
Normal file
@@ -0,0 +1,70 @@
|
||||
[gd_scene format=3 uid="uid://2x2iotcho43kp"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/kq4_012_haunted_forest/kq4_012_haunted_forest.gd" id="1_script"]
|
||||
[ext_resource type="Texture2D" path="res://scenes/kq4_012_haunted_forest/pic_012_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_006_cave_entrance" 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_012_haunted_forest"
|
||||
target = "uid://23orpd43hrwbt"
|
||||
label = "Cave Entrance"
|
||||
|
||||
[node name="entrance" parent="kq4_006_cave_entrance" index="0"]
|
||||
position = Vector2(133, 643)
|
||||
|
||||
[node name="exit" parent="kq4_006_cave_entrance" index="1"]
|
||||
position = Vector2(174, 519)
|
||||
|
||||
[node name="kq4_011_enchanted_grove" 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_012_haunted_forest"
|
||||
target = "uid://ujxktwdn8l8r"
|
||||
label = "Enchanted Grove"
|
||||
|
||||
[node name="entrance" parent="kq4_011_enchanted_grove" index="0"]
|
||||
position = Vector2(506, 555)
|
||||
|
||||
[node name="exit" parent="kq4_011_enchanted_grove" index="1"]
|
||||
position = Vector2(-64, 534)
|
||||
|
||||
[connection signal="interacted" from="kq4_006_cave_entrance" to="." method="_on_cave_entrance_interacted"]
|
||||
[connection signal="interacted" from="kq4_011_enchanted_grove" to="." method="_on_enchanted_grove_interacted"]
|
||||
|
||||
[editable path="kq4_006_cave_entrance"]
|
||||
[editable path="kq4_011_enchanted_grove"]
|
||||
@@ -0,0 +1 @@
|
||||
uid://2x2iotcho43kp
|
||||
@@ -0,0 +1 @@
|
||||
uid://bk8q2nad4pu44
|
||||
BIN
scenes/kq4_012_haunted_forest/pic_012_visual.png
LFS
Normal file
BIN
scenes/kq4_012_haunted_forest/pic_012_visual.png
LFS
Normal file
Binary file not shown.
40
scenes/kq4_012_haunted_forest/pic_012_visual.png.import
Normal file
40
scenes/kq4_012_haunted_forest/pic_012_visual.png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://1t4qjt923mk3d"
|
||||
path="res://.godot/imported/pic_012_visual.png-PLACEHOLDER.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/kq4_012_haunted_forest/pic_012_visual.png"
|
||||
dest_files=["res://.godot/imported/pic_012_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
|
||||
Reference in New Issue
Block a user