This commit is contained in:
2026-03-04 22:05:05 -08:00
parent 33dc00cb6a
commit 7c0ff65a19
10 changed files with 777 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://2oba97xunlssu"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(1147, 779, 1153, 854, 1152, 1053, 1151, 1054, 1055, 1046, 1043, 920, 1050, 781, 1051, 780)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -15,3 +15,9 @@ func _on_forest_path_interacted() -> void:
func _on_forest_grove_interacted() -> void:
$kq4_005_forest_grove.default_script(self)
func _on_door_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "It's a sturdy wooden door to the ogre's cottage.")
).build(self, "_on_script_complete"))

View File

@@ -4,6 +4,8 @@
[ext_resource type="Texture2D" uid="uid://b1yeiwh8uqii2" path="res://scenes/kq4_004_ogres_cottage/caption_1_454377357_generated.png" id="2_u8g8b"]
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_kvdqi"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_67nph"]
[ext_resource type="Resource" uid="uid://2oba97xunlssu" path="res://scenes/kq4_004_ogres_cottage/door_polygon.tres" id="5_door"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="6_setpiece"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_furs3"]
vertices = PackedVector2Array(325.656, 570.578, 582.328, 580.656, 525.289, 597.977, 454.133, 654.148, 445.539, 889.25, 919.219, 873.633, 1158.89, 691.359, 1294.26, 705.508, 1204.28, 907.469, -58.2969, 1146.06, -76.6797, 562, -6.6875, 562, 126.258, 883.891, 1990, 1160.92, 1662.15, 956.969, 1990, 977.391)
@@ -91,10 +93,19 @@ position = Vector2(24, 565)
[node name="exit" parent="kq4_005_forest_grove" index="1"]
position = Vector2(293, 554)
[node name="door" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(0.783, 0.78)
color = Color(0.5, 0.5, 0.5, 0.25)
polygon = PackedVector2Array(1147, 779, 1153, 854, 1152, 1053, 1151, 1054, 1055, 1046, 1043, 920, 1050, 781, 1051, 780)
script = ExtResource("6_setpiece")
label = "Door"
points_resource = ExtResource("5_door")
[connection signal="interacted" from="kq4_028_mine_entrance" to="." method="_on_mine_entrance_interacted"]
[connection signal="interacted" from="kq4_003_fountain_pool" to="." method="_on_pool_interacted"]
[connection signal="interacted" from="kq4_010_forest_path" to="." method="_on_forest_path_interacted"]
[connection signal="interacted" from="kq4_005_forest_grove" to="." method="_on_forest_grove_interacted"]
[connection signal="looked" from="door" to="." method="_on_door_looked"]
[editable path="kq4_028_mine_entrance"]
[editable path="kq4_003_fountain_pool"]