This commit is contained in:
2026-03-05 22:47:43 -08:00
parent a2eb4de815
commit 8cfae8dea2
285 changed files with 2814 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
---
description: Image Inspector
mode: subagent
model: local/Qwen3-VL
model: local/Qwen3.5-35B-A3B
tools:
read: true
---

View File

@@ -34,6 +34,7 @@ signal entered(lab)
signal exited(lab)
@export var label: String
@export var priority: int = 0
@export var points_resource: PolygonPointsResource:
set(value):
points_resource = value
@@ -57,10 +58,34 @@ func _process(delta):
func _get_overlapping_setpieces() -> Array[SetPiece]:
var overlapping: Array[SetPiece] = []
var mouse_pos = to_local(get_global_mouse_position())
for child in get_tree().get_nodes_in_group("set-piece"):
if child is SetPiece and child != self:
if child.polygon.size() > 0 and Geometry2D.is_point_in_polygon(mouse_pos, child.polygon):
overlapping.append(child)
return overlapping
func _input(event):
if not Engine.is_editor_hint():
if Geometry2D.is_point_in_polygon(to_local(get_global_mouse_position()), self.polygon):
if event is InputEventMouseButton and event.is_action("interact"):
# Find all overlapping SetPieces and check if this one has highest priority
var overlapping = _get_overlapping_setpieces()
overlapping.append(self)
var max_priority = self.priority
for piece in overlapping:
if piece.priority > max_priority:
max_priority = piece.priority
# Only process if this SetPiece has the highest priority
if self.priority < max_priority:
return
get_viewport().set_input_as_handled()
# Check if interacted signal has connections - it takes precedence

View File

@@ -3,8 +3,10 @@ class_name TransitionPiece
@export var appear_at_node: String
@export_file("*.tscn") var target
#@export var priority: int = 100
# Called when the node enters the scene tree for the first time.
func _ready():
priority = 100
super()

View File

@@ -1,7 +1,7 @@
extends Node2D
var hovered_setpieces: Array[String] = []
var hovered_setpieces: Array[Dictionary] = []
@onready var label : Label = $"label"
func _ready():
@@ -73,24 +73,45 @@ func _process(delta):
func _on_setpiece_entered(lab: String) -> void:
if lab not in hovered_setpieces:
hovered_setpieces.append(lab)
var piece = get_setpiece_by_label(lab)
if piece:
var entry = {"label": lab, "priority": piece.priority}
if not _has_entry_with_label(lab):
hovered_setpieces.append(entry)
_update_label()
func _on_setpiece_exited(lab: String) -> void:
hovered_setpieces.erase(lab)
for i in range(hovered_setpieces.size()):
if hovered_setpieces[i].label == lab:
hovered_setpieces.remove_at(i)
break
_update_label()
func _has_entry_with_label(lab: String) -> bool:
for entry in hovered_setpieces:
if entry.label == lab:
return true
return false
func get_setpiece_by_label(lab: String) -> SetPiece:
var scene = get_parent()
for child in scene.find_children("*", "SetPiece", true, false):
if child is SetPiece and child.label == lab:
return child
return null
func _update_label() -> void:
print(hovered_setpieces)
if hovered_setpieces.is_empty():
$label.hide()
return
var top_label = hovered_setpieces[0]
hovered_setpieces.sort_custom(func(a, b): return b.priority > a.priority)
var top_entry = hovered_setpieces[0]
$label.show()
$label.text = top_label
$label.text = top_entry.label
var size = label.label_settings.font.get_string_size(top_label, HORIZONTAL_ALIGNMENT_LEFT, 200, 32)
var size = label.label_settings.font.get_string_size(top_entry.label, HORIZONTAL_ALIGNMENT_LEFT, 200, 32)
label.size = size

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://bpk4m5fp1xdvj"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2495, 1391, 1161, 1391, 1128, 171, 1135, 166, 1179, 156, 2058, 0, 2495, 0)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -15,3 +15,15 @@ func _on_meadow_interacted() -> void:
func _on_open_ocean_interacted() -> void:
$kq4_031_open_ocean.default_script(self)
func _on_grass_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "Lush green grass covers the cliff.")
).build(self, "_on_script_complete"))
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You find yourself on a beautiful beach.")
).build(self, "_on_script_complete"))

View File

@@ -10,7 +10,7 @@ vertices = PackedVector2Array(366.85156, 1243.1484, -140.97656, 1182.2422, -76.0
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]
[node name="background2" type="Node2D" unique_id=657573819]
y_sort_enabled = true
script = ExtResource("1_abc")
@@ -88,6 +88,12 @@ position = Vector2(506, 555)
[node name="exit" parent="kq4_031_open_ocean" index="1"]
position = Vector2(-64, 534)
[node name="grass" type="Polygon2D" parent="." unique_id=1234567890]
position = Vector2(2891, 1072)
rotation = -3.1415927
scale = Vector2(0.78, 0.78)
polygon = PackedVector2Array(1184.6155, -14.102417, 2534.6157, -17.948486, 2238.462, 328.20532, 1600, 378.20532, 1441.0256, 453.8463, 1639.7437, 551.2822, 1710.2566, 610.2566, 1426.9231, 850.0002, 2128.205, 1075.6412, 1869.2308, 1162.8208, 1230.7693, 1142.3079, 1184.6155, 297.43604)
[connection signal="interacted" from="kq4_025_beach_at_river_delta" to="." method="_on_beach_at_river_delta_interacted"]
[connection signal="interacted" from="kq4_002_meadow" to="." method="_on_meadow_interacted"]
[connection signal="interacted" from="kq4_007_fishermans_shack" to="." method="_on_fishermans_shack_interacted"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://d8mtk2txsucm"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(1267, 1247, 885, 1278, 380, 1187, 382, 1153, 606, 971, 912, 854, 1023, 877, 1179, 1009)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,6 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://dt1wrhd0optmu"]
[ext_resource type="Script" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")

View File

@@ -15,3 +15,21 @@ func _on_beach_interacted() -> void:
func _on_river_meadow_interacted() -> void:
$kq4_026_river_meadow.default_script(self)
func _on_bush_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "Small, low bushes dot the pretty meadow. Wildflowers grow among them.")
).build(self, "_on_script_complete"))
func _on_boulder_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "Scattered rocks lie among the wildflowers of the meadow.")
).build(self, "_on_script_complete"))
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You are surrounded by beautiful wildflowers in this luscious green meadowland.")
).build(self, "_on_script_complete"))

View File

@@ -4,6 +4,9 @@
[ext_resource type="Texture2D" uid="uid://c33e2jclpbmwm" path="res://scenes/kq4_002_meadow/caption_3_1877206259_generated.png" id="2_ko8f1"]
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_abc"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_abc"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="5_setpiece"]
[ext_resource type="Resource" uid="uid://dt1wrhd0optmu" path="res://scenes/kq4_002_meadow/bush_polygon.tres" id="6_bush"]
[ext_resource type="Resource" path="res://scenes/kq4_002_meadow/boulder_polygon.tres" id="7_boulder"]
[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)
@@ -88,10 +91,30 @@ position = Vector2(506, 555)
[node name="exit" parent="kq4_001_beach" index="1"]
position = Vector2(-64, 534)
[node name="bush" type="Polygon2D" parent="." unique_id=123456789]
scale = Vector2(0.78, 0.78)
color = Color(0.7, 0.7, 0.7, 0.25)
polygon = PackedVector2Array(2532.0513, 969.2308, 2111.5386, 1026.9231, 1935.8975, 984.6154, 1848.718, 906.4103, 1991.0258, 802.56415, 2505.1282, 576.9231)
script = ExtResource("5_setpiece")
label = "Bush"
priority = null
points_resource = ExtResource("6_bush")
[node name="boulder" type="Polygon2D" parent="." unique_id=987654321]
scale = Vector2(0.78, 0.78)
color = Color(0.7, 0.7, 0.7, 0.25)
polygon = PackedVector2Array(1267, 1247, 885, 1278, 380, 1187, 382, 1153, 606, 971, 912, 854, 1023, 877, 1179, 1009)
script = ExtResource("5_setpiece")
label = "Boulder"
priority = null
points_resource = ExtResource("7_boulder")
[connection signal="interacted" from="kq4_026_river_meadow" to="." method="_on_river_meadow_interacted"]
[connection signal="interacted" from="kq4_003_fountain_pool" to="." method="_on_fountain_pool_interacted"]
[connection signal="interacted" from="kq4_008_back_of_fishermans_shack" to="." method="_on_back_of_fishermans_shack_interacted"]
[connection signal="interacted" from="kq4_001_beach" to="." method="_on_beach_interacted"]
[connection signal="looked" from="bush" to="." method="_on_bush_looked"]
[connection signal="looked" from="boulder" to="." method="_on_boulder_looked"]
[editable path="kq4_026_river_meadow"]
[editable path="kq4_003_fountain_pool"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://dv1pjd2tbgwpc"]
[ext_resource type="Script" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2482, 733, 2495, 1187, 2435, 1245, 1371, 1203, 363, 1034, 627, 652, 988, 276, 1777, 11, 2105, 145)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -21,3 +21,21 @@ 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"))
func _on_cottage_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "This is a large, crudely-built, thatched-roof house. It makes you feel uneasy.")
).build(self, "_on_script_complete"))
func _on_window_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You peek through the window, but can make out no details.")
).build(self, "_on_script_complete"))
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You stand before the ogre's cottage.")
).build(self, "_on_script_complete"))

View File

@@ -5,6 +5,8 @@
[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="Resource" uid="uid://13hw2plcon58w" path="res://scenes/kq4_004_ogres_cottage/cottage_polygon.tres" id="7_cottage"]
[ext_resource type="Resource" uid="uid://xvi6ayn7pcj6" path="res://scenes/kq4_004_ogres_cottage/window_polygon.tres" id="8_window"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="6_setpiece"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_furs3"]
@@ -101,11 +103,27 @@ script = ExtResource("6_setpiece")
label = "Door"
points_resource = ExtResource("5_door")
[node name="cottage" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(0.783, 0.78)
color = Color(0.5, 0.5, 0.5, 0.25)
script = ExtResource("6_setpiece")
label = "Cottage"
points_resource = ExtResource("7_cottage")
[node name="window" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(0.783, 0.78)
color = Color(0.5, 0.5, 0.5, 0.25)
script = ExtResource("6_setpiece")
label = "Window"
points_resource = ExtResource("8_window")
[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"]
[connection signal="looked" from="cottage" to="." method="_on_cottage_looked"]
[connection signal="looked" from="window" to="." method="_on_window_looked"]
[editable path="kq4_028_mine_entrance"]
[editable path="kq4_003_fountain_pool"]

View File

@@ -0,0 +1,7 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://xvi6ayn7pcj6"]
[ext_resource type="Script" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2082, 376, 2079, 932, 1487, 971, 1359, 968, 785, 912, 781, 832, 1984, 374)

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://n2tgvacqmctu"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(319, 189, 241, 189, 54, 174, 74, 77, 80, 64, 165, 19, 194, 21, 317, 57)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://p7afm3d325b3"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(37, 56, 55, 10, 68, 0, 316, 4, 315, 73, 304, 117, 268, 183, 48, 69)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://bb6csq2i5n4jv"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(318, 170, 302, 187, 54, 174, 0, 104, 0, 14, 220, 18, 317, 57)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -15,3 +15,33 @@ func _on_cave_entrance_interacted() -> void:
func _on_ogres_cottage_interacted() -> void:
$kq4_004_ogres_cottage.default_script(self)
func _on_cottage_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You see the back of a large, thatched-roof house.")
).build(self, "_on_script_complete"))
func _on_window_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You look through the window, but can make out no details.")
).build(self, "_on_script_complete"))
func _on_boulders_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "The rocks are insignificant here.")
).build(self, "_on_script_complete"))
func _on_bushes_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You don't see many shrubs here.")
).build(self, "_on_script_complete"))
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "This is a creepy place! You have found a grove of very odd, (and scary-looking), trees. A thick forest surrounds the grove.")
).build(self, "_on_script_complete"))

View File

@@ -4,6 +4,11 @@
[ext_resource type="Texture2D" path="res://scenes/kq4_005_forest_grove/pic_005_visual.png" id="2_abc"]
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_abc"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_abc"]
[ext_resource type="Resource" uid="uid://3d1fw5h9328t8" path="res://scenes/kq4_005_forest_grove/cottage_polygon.tres" id="5_abc"]
[ext_resource type="Resource" uid="uid://2jf9850spw0b" path="res://scenes/kq4_005_forest_grove/window_polygon.tres" id="6_abc"]
[ext_resource type="Resource" uid="uid://n2tgvacqmctu" path="res://scenes/kq4_005_forest_grove/boulders_polygon.tres" id="7_abc"]
[ext_resource type="Resource" uid="uid://p7afm3d325b3" path="res://scenes/kq4_005_forest_grove/bushes_polygon.tres" id="8_abc"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="9_abc"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_ppo6b"]
vertices = PackedVector2Array(374.47656, 1145.0078, -140.75781, 1180.2031, -76.11719, 588.6797, -53.679688, 490.4922, 1222.4688, 227.3125, 1994.2422, 468.4297, 2012.7031, 1020.2031, 1268.1875, 1113.0234)
@@ -87,10 +92,42 @@ position = Vector2(506, 555)
[node name="exit" parent="kq4_004_ogres_cottage" index="1"]
position = Vector2(-64, 534)
[node name="cottage" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(6, 6)
color = Color(0.5, 0.5, 0.5, 0.25)
script = ExtResource("9_abc")
label = "Cottage"
points_resource = ExtResource("5_abc")
[node name="window" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(6, 6)
color = Color(0.5, 0.5, 0.5, 0.25)
script = ExtResource("9_abc")
label = "Window"
points_resource = ExtResource("6_abc")
[node name="boulders" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(6, 6)
color = Color(0.5, 0.5, 0.5, 0.25)
script = ExtResource("9_abc")
label = "Boulders"
points_resource = ExtResource("7_abc")
[node name="bushes" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(6, 6)
color = Color(0.5, 0.5, 0.5, 0.25)
script = ExtResource("9_abc")
label = "Bushes"
points_resource = ExtResource("8_abc")
[connection signal="interacted" from="kq4_029_dense_forest" to="." method="_on_dense_forest_interacted"]
[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"]
[connection signal="interacted" from="kq4_004_ogres_cottage" to="." method="_on_ogres_cottage_interacted"]
[connection signal="looked" from="cottage" to="." method="_on_cottage_looked"]
[connection signal="looked" from="window" to="." method="_on_window_looked"]
[connection signal="looked" from="boulders" to="." method="_on_boulders_looked"]
[connection signal="looked" from="bushes" to="." method="_on_bushes_looked"]
[editable path="kq4_029_dense_forest"]
[editable path="kq4_006_cave_entrance"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://2jga850spw0b"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(305, 115, 268, 183, 256, 181, 0, 104, 0, 25, 10, 24, 255, 85)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,7 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://4ari7a2nudri"]
[ext_resource type="Script" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2495, 84, 2481, 1342, 2468, 1391, 0, 1391, 0, 0, 1675, 0, 2479, 57)

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://3c8se2uju0y2o"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2269, 245, 2339, 677, 2243, 911, 165, 1146, 162, 1012, 1472, 175, 2052, 78)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -21,3 +21,31 @@ func _on_fishermans_house_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "The fisherman's shack looks badly in need of repair, as the sun, wind, and salt spray have taken their toll. From the house, an old pier leads out into the ocean.")
).build(self, "_on_script_complete"))
func _on_door_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "This is a plain wooden door.")
).build(self, "_on_script_complete"))
func _on_door_interacted() -> void:
$kq4_008_back_of_fishermans_shack.default_script(self)
func _on_window_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You peek through the window, but can make out no details.")
).build(self, "_on_script_complete"))
func _on_pier_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "The old, worn pier juts out into the ocean from the weather-beaten house.")
).build(self, "_on_script_complete"))
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You stand at the fisherman's shack.")
).build(self, "_on_script_complete"))

View File

@@ -5,6 +5,9 @@
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_abc"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_abc"]
[ext_resource type="Resource" uid="uid://bbepaofrwlurc" path="res://scenes/kq4_007_fishermans_shack/fishermans_house_polygon.tres" id="5_house"]
[ext_resource type="Resource" uid="uid://4ari7a2nudri" path="res://scenes/kq4_007_fishermans_shack/door_polygon.tres" id="7_door"]
[ext_resource type="Resource" uid="uid://2qf4mwncdwxwe" path="res://scenes/kq4_007_fishermans_shack/window_polygon.tres" id="8_window"]
[ext_resource type="Resource" uid="uid://3bpn8dhixs0k8" path="res://scenes/kq4_007_fishermans_shack/pier_polygon.tres" id="9_pier"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="6_setpiece"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_ppo6b"]
@@ -96,10 +99,37 @@ script = ExtResource("6_setpiece")
label = "Fisherman's House"
points_resource = ExtResource("5_house")
[node name="door" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(0.78, 0.78)
color = Color(0.5, 0.5, 0.5, 0.25)
polygon = PackedVector2Array(2495, 84, 2481, 1342, 2468, 1391, 0, 1391, 0, 0, 1675, 0, 2479, 57)
script = ExtResource("6_setpiece")
label = "Door"
points_resource = ExtResource("7_door")
[node name="window" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(0.78, 0.78)
color = Color(0.5, 0.5, 0.5, 0.25)
polygon = PackedVector2Array(2495, 86, 2467, 1391, 36, 1391, 0, 1365, 0, 0, 1669, 0, 2463, 60)
script = ExtResource("6_setpiece")
label = "Window"
points_resource = ExtResource("8_window")
[node name="pier" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(0.78, 0.78)
color = Color(0.5, 0.5, 0.5, 0.25)
polygon = PackedVector2Array(1011, 1020, 921, 1117, 552, 1143, 164, 1146, 140, 1051, 161, 1012, 251, 955, 889, 951, 983, 979)
script = ExtResource("6_setpiece")
label = "Pier"
points_resource = ExtResource("9_pier")
[connection signal="interacted" from="kq4_001_beach" to="." method="_on_beach_interacted"]
[connection signal="interacted" from="kq4_008_back_of_fishermans_shack" to="." method="_on_back_of_fishermans_shack_interacted"]
[connection signal="interacted" from="kq4_013_beach" to="." method="_on_beach_2_interacted"]
[connection signal="looked" from="fishermans_house" to="." method="_on_fishermans_house_looked"]
[connection signal="interacted" from="door" to="." method="_on_door_interacted"]
[connection signal="looked" from="window" to="." method="_on_window_looked"]
[connection signal="looked" from="pier" to="." method="_on_pier_looked"]
[editable path="kq4_001_beach"]
[editable path="kq4_008_back_of_fishermans_shack"]

View File

@@ -0,0 +1,7 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://8uk3x1q0evav"]
[ext_resource type="Script" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(1011, 1020, 921, 1117, 552, 1143, 164, 1146, 140, 1051, 161, 1012, 251, 955, 889, 951, 983, 979)

View File

@@ -0,0 +1,7 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://ok1ii7kfitl1"]
[ext_resource type="Script" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2495, 86, 2467, 1391, 36, 1391, 0, 1365, 0, 0, 1669, 0, 2463, 60)

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://w0ydnt3i4mpp"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(316, 178, 177, 187, 122, 187, 0, 136, 0, 12, 78, 2, 317, 0, 319, 139)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -15,3 +15,21 @@ func _on_fishermans_shack_interacted() -> void:
func _on_green_meadow_interacted() -> void:
$kq4_014_green_meadow.default_script(self)
func _on_cottage_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You see the back of an old shack.")
).build(self, "_on_script_complete"))
func _on_window_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You peek through the window, but can make out no details.")
).build(self, "_on_script_complete"))
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You stand behind the fisherman's shack.")
).build(self, "_on_script_complete"))

View File

@@ -2,6 +2,9 @@
[ext_resource type="Script" uid="uid://31tmx5rtcbd9h" path="res://scenes/kq4_008_back_of_fishermans_shack/kq4_008_back_of_fishermans_shack.gd" id="1_abc"]
[ext_resource type="Texture2D" uid="uid://1qgkzu9kzrsb2" path="res://scenes/kq4_008_back_of_fishermans_shack/pic_008_visual.png" id="2_abc"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="5_setpiece"]
[ext_resource type="Resource" uid="uid://2yu2h2auhjq02" path="res://scenes/kq4_008_back_of_fishermans_shack/cottage_polygon.tres" id="6_cottage"]
[ext_resource type="Resource" uid="uid://ie9kcj20t0tl" path="res://scenes/kq4_008_back_of_fishermans_shack/window_polygon.tres" id="7_window"]
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_abc"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_abc"]
@@ -89,10 +92,26 @@ position = Vector2(118, 514)
[node name="exit" parent="kq4_014_green_meadow" index="1"]
position = Vector2(151, 615)
[node name="cottage" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(6, 6)
color = Color(0.5, 0.5, 0.5, 0.25)
script = ExtResource("5_setpiece")
label = "Cottage"
points_resource = ExtResource("6_cottage")
[node name="window" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(6, 6)
color = Color(0.5, 0.5, 0.5, 0.25)
script = ExtResource("5_setpiece")
label = "Window"
points_resource = ExtResource("7_window")
[connection signal="interacted" from="kq4_009_shady_wooded_area" to="." method="_on_shady_wooded_area_interacted"]
[connection signal="interacted" from="kq4_002_meadow" to="." method="_on_meadow_interacted"]
[connection signal="interacted" from="kq4_007_fishermans_shack" to="." method="_on_fishermans_shack_interacted"]
[connection signal="interacted" from="kq4_014_green_meadow" to="." method="_on_green_meadow_interacted"]
[connection signal="looked" from="cottage" to="." method="_on_cottage_looked"]
[connection signal="looked" from="window" to="." method="_on_window_looked"]
[editable path="kq4_009_shady_wooded_area"]
[editable path="kq4_002_meadow"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://ifakcj20t0tl"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(298, 74, 306, 187, 0, 189, 16, 91, 68, 27, 234, 35, 277, 48)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://rgq1r38cpy2p"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(883, 787, 918, 726, 1171, 591, 1429, 587, 1528, 624, 1734, 859, 1399, 981, 935, 887)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://va6hdfw87hsl"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2254, 887, 2224, 1098, 2131, 1203, 1121, 1023, 886, 916, 813, 794, 1105, 340)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -15,3 +15,27 @@ func _on_frog_pond_interacted() -> void:
func _on_back_of_fishermans_shack_interacted() -> void:
$kq4_008_back_of_fishermans_shack.default_script(self)
func _on_boulder_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "A large rock dominates the clearing.")
).build(self, "_on_script_complete"))
func _on_pool_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "It's too far in the distance to see it clearly.")
).build(self, "_on_script_complete"))
func _on_flowers_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "There are flowers here and there.")
).build(self, "_on_script_complete"))
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You are in a shady wooded area.")
).build(self, "_on_script_complete"))

View File

@@ -4,6 +4,10 @@
[ext_resource type="Texture2D" uid="uid://bvhh6scahcu61" path="res://scenes/kq4_009_shady_wooded_area/caption_3_2676608714_generated.png" id="2_gws7f"]
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_abc"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_abc"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="5_setpiece"]
[ext_resource type="Resource" uid="uid://2tbt56j0a44d2" path="res://scenes/kq4_009_shady_wooded_area/boulder_polygon.tres" id="6_boulder"]
[ext_resource type="Resource" uid="uid://3dvjqnfbx0lqq" path="res://scenes/kq4_009_shady_wooded_area/pool_polygon.tres" id="7_pool"]
[ext_resource type="Resource" uid="uid://2w49lquo7ml3x" path="res://scenes/kq4_009_shady_wooded_area/flowers_polygon.tres" id="8_flowers"]
[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)
@@ -89,10 +93,34 @@ position = Vector2(133, 643)
[node name="exit" parent="kq4_015_frog_pond" index="1"]
position = Vector2(174, 519)
[node name="boulder" type="Polygon2D" parent="." unique_id=123456791]
scale = Vector2(0.78, 0.78)
color = Color(0.7, 0.7, 0.7, 0.25)
script = ExtResource("5_setpiece")
label = "Boulder"
points_resource = ExtResource("6_boulder")
[node name="pool" type="Polygon2D" parent="." unique_id=123456792]
scale = Vector2(0.78, 0.78)
color = Color(0.7, 0.7, 0.7, 0.25)
script = ExtResource("5_setpiece")
label = "Pool"
points_resource = ExtResource("7_pool")
[node name="flowers" type="Polygon2D" parent="." unique_id=123456793]
scale = Vector2(0.78, 0.78)
color = Color(0.7, 0.7, 0.7, 0.25)
script = ExtResource("5_setpiece")
label = "Flowers"
points_resource = ExtResource("8_flowers")
[connection signal="interacted" from="kq4_003_fountain_pool" to="." method="_on_fountain_pool_interacted"]
[connection signal="interacted" from="kq4_010_forest_path" to="." method="_on_forest_path_interacted"]
[connection signal="interacted" from="kq4_008_back_of_fishermans_shack" to="." method="_on_back_of_fishermans_shack_interacted"]
[connection signal="interacted" from="kq4_015_frog_pond" to="." method="_on_frog_pond_interacted"]
[connection signal="looked" from="boulder" to="." method="_on_boulder_looked"]
[connection signal="looked" from="pool" to="." method="_on_pool_looked"]
[connection signal="looked" from="flowers" to="." method="_on_flowers_looked"]
[editable path="kq4_003_fountain_pool"]
[editable path="kq4_010_forest_path"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://bb1gl8yj0lhge"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2010, 919, 1021, 1096, 807, 912, 921, 724, 1172, 591, 1259, 581, 1491, 604, 1964, 863)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://j7p1x0q2ewrs"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(50, 182, 45, 107, 227, 51, 210, 125, 291, 159)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -19,3 +19,21 @@ func _on_graveyard_interacted() -> void:
func _on_shady_wooded_area_interacted() -> void:
$kq4_009_shady_wooded_area.default_script(self)
func _on_flowers_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "There aren't many flowers to pick!")
).build(self, "_on_script_complete"))
func _on_pine_trees_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "Mostly, you see pine trees.")
).build(self, "_on_script_complete"))
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You are on a forest path.")
).build(self, "_on_script_complete"))

View File

@@ -5,6 +5,10 @@
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_abc"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_abc"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="5_setpiece"]
[ext_resource type="Resource" uid="uid://2l2s6dgizs125" path="res://scenes/kq4_010_forest_path/flowers_polygon_0.tres" id="5_flowers"]
[ext_resource type="Resource" uid="uid://3fuj0q7ii26p9" path="res://scenes/kq4_010_forest_path/trees_polygon_0.tres" id="6_trees"]
[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)])
@@ -102,7 +106,27 @@ position = Vector2(350, 500)
[node name="exit" parent="kq4_009_shady_wooded_area" index="1"]
position = Vector2(100, 480)
[connection signal="interacted" from="kq4_003_fountain_pool" to="." method="_on_fountain_pool_interacted"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="5_setpiece"]
[ext_resource type="Resource" uid="uid://2l2s6dgizs125" path="res://scenes/kq4_010_forest_path/flowers_polygon_0.tres" id="5_flowers"]
[node name="flowers" type="Polygon2D" parent="." unique_id=123456781]
scale = Vector2(6, 6)
color = Color(0.7, 0.7, 0.7, 0.25)
polygon = PackedVector2Array(168, 1047, 176, 1049, 180, 1070, 172, 1072)
script = ExtResource("5_setpiece")
label = "Flowers"
points_resource = ExtResource("5_flowers")
[node name="pine_trees" type="Polygon2D" parent="." unique_id=123456782]
scale = Vector2(6, 6)
color = Color(0.7, 0.7, 0.7, 0.25)
polygon = PackedVector2Array(317, 13, 319, 186, 249, 181, 292, 158, 211, 123, 240, 32, 269, 22, 261, 0)
script = ExtResource("5_setpiece")
label = "Pine Trees"
points_resource = ExtResource("6_trees")
[connection signal="looked" from="flowers" to="." method="_on_flowers_looked"]
[connection signal="looked" from="pine_trees" to="." method="_on_pine_trees_looked"]
[connection signal="interacted" from="kq4_004_ogres_cottage" to="." method="_on_ogres_cottage_interacted"]
[connection signal="interacted" from="kq4_011_enchanted_grove" to="." method="_on_enchanted_grove_interacted"]
[connection signal="interacted" from="kq4_016_graveyard" to="." method="_on_graveyard_interacted"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://bd0gvdrqkn2fw"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(317, 13, 319, 186, 249, 181, 292, 158, 211, 123, 240, 32, 269, 22, 261, 0)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://1s0awyi3edep"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(192, 72, 146, 71, 157, 104, 65, 102, 78, 87, 61, 85, 104, 27, 177, 23)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://br7t7b0n224x5"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(63, 33, 57, 33, 63, 42, 58, 47, 69, 52, 46, 63, 45, 17, 52, 11)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://bhv017038xnsg"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(85, 174, 54, 171, 51, 183, 113, 180, 108, 189, 50, 189, 49, 170)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://ksm88tr7v4kr"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(3, 50, 3, 67, 1, 85, 2, 102, 0, 120, 1, 127, 0, 127, 0, 47)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -15,3 +15,15 @@ func _on_haunted_forest_interacted() -> void:
func _on_spooky_house_exterior_interacted() -> void:
$kq4_017_spooky_house_exterior.default_script(self)
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "This place gives you the willies! The trees around here are very strange; almost human-like. A dense forest surrounds this odd grove of trees.")
).build(self, "_on_script_complete"))
func _on_tree_left_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "This gnarled tree has an almost human-like appearance. Its twisted branches seem to reach toward you...")
).build(self, "_on_script_complete"))

View File

@@ -4,6 +4,8 @@
[ext_resource type="Texture2D" uid="uid://dk7r6la0vktg5" path="res://scenes/kq4_011_enchanted_grove/caption_2_496392820_generated.png" id="2_4yweh"]
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_abc"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_abc"]
[ext_resource type="Resource" uid="uid://3v7bd74wy099f" path="res://scenes/kq4_011_enchanted_grove/tree_left_polygon.tres" id="5_abc"]
[ext_resource type="Script" uid="uid://byf6hc1mxm7b8" path="res://SetPiece_.gd" id="6_abc"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_ppo6b"]
vertices = PackedVector2Array(374.47656, 1145.0078, -140.75781, 1180.2031, -76.11719, 588.6797, -53.679688, 490.4922, 1222.4688, 227.3125, 1994.2422, 468.4297, 2012.7031, 1020.2031, 1268.1875, 1113.0234)
@@ -87,12 +89,21 @@ position = Vector2(506, 555)
[node name="exit" parent="kq4_010_forest_path" index="1"]
position = Vector2(-64, 534)
[node name="tree_left" type="Polygon2D" parent="." unique_id=1234567890]
scale = Vector2(0.78, 0.78)
polygon = PackedVector2Array()
script = ExtResource("6_abc")
label = "Gnarled Tree"
polygon_resource = ExtResource("5_abc")
[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"]
[connection signal="interacted" from="kq4_017_spooky_house_exterior" to="." method="_on_spooky_house_exterior_interacted"]
[connection signal="interacted" from="kq4_010_forest_path" to="." method="_on_forest_path_interacted"]
[connection signal="looked" from="tree_left" to="." method="_on_tree_left_looked"]
[editable path="kq4_005_forest_grove"]
[editable path="kq4_012_haunted_forest"]
[editable path="kq4_017_spooky_house_exterior"]
[editable path="kq4_010_forest_path"]
[editable path="tree_left"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://buc68to51l5x2"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(1123, 0, 911, 1391, 0, 1391, 0, 0)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://b0cj3l40o6i0l"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(297, 78, 264, 109, 141, 181, 106, 186, 99, 182, 68, 52, 160, 29, 186, 31, 284, 66)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://qtlmxa8rwpqa"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(316, 187, 107, 187, 99, 182, 68, 52, 213, 47, 285, 56, 316, 128)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -15,3 +15,21 @@ func _on_green_meadow_interacted() -> void:
func _on_open_ocean_interacted() -> void:
$kq4_031_open_ocean.default_script(self)
func _on_dock_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You see a shabby little house, with a pier, in the distance.")
).build(self, "_on_script_complete"))
func _on_cottage_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You see a shabby little house, with a pier, in the distance.")
).build(self, "_on_script_complete"))
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You stand on a beautiful beach.")
).build(self, "_on_script_complete"))

View File

@@ -4,6 +4,9 @@
[ext_resource type="Texture2D" uid="uid://dbi8vjqvdpc3g" path="res://scenes/kq4_013_beach/caption_2_3376356057_generated.png" id="2_6hbuw"]
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_abc"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_abc"]
[ext_resource type="Resource" uid="uid://qtlmw98rwpqa" path="res://scenes/kq4_013_beach/dock_polygon.tres" id="5_dock"]
[ext_resource type="Resource" uid="uid://316m70krnlnbx" path="res://scenes/kq4_013_beach/cottage_polygon.tres" id="6_cottage"]
[ext_resource type="Script" uid="uid://cxm4y5s6pwpm8" path="res://SetPiece_.gd" id="8_setpiece"]
[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)
@@ -88,10 +91,26 @@ position = Vector2(506, 555)
[node name="exit" parent="kq4_031_open_ocean" index="1"]
position = Vector2(-64, 534)
[node name="dock" type="Polygon2D" parent="." unique_id=123456789]
scale = Vector2(0.78, 0.78)
polygon = PackedVector2Array(0, 0, 100, 0, 100, 50, 0, 50)
script = ExtResource("8_setpiece")
label = "Dock"
polygon_resource = ExtResource("5_dock")
[node name="cottage" type="Polygon2D" parent="." unique_id=234567891]
scale = Vector2(0.78, 0.78)
polygon = PackedVector2Array(0, 0, 100, 0, 100, 50, 0, 50)
script = ExtResource("8_setpiece")
label = "Cottage"
polygon_resource = ExtResource("6_cottage")
[connection signal="interacted" from="kq4_007_fishermans_shack" to="." method="_on_fishermans_shack_interacted"]
[connection signal="interacted" from="kq4_014_green_meadow" to="." method="_on_green_meadow_interacted"]
[connection signal="interacted" from="kq4_019_coastal_cliffs" to="." method="_on_coastal_cliffs_interacted"]
[connection signal="interacted" from="kq4_031_open_ocean" to="." method="_on_open_ocean_interacted"]
[connection signal="looked" from="dock" to="." method="_on_dock_looked"]
[connection signal="looked" from="cottage" to="." method="_on_cottage_looked"]
[editable path="kq4_007_fishermans_shack"]
[editable path="kq4_014_green_meadow"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://8cpj5dv0jq81"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(317, 186, 96, 187, 0, 55, 1, 18, 46, 7, 291, 44, 317, 78)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://glivl5022ixl"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(318, 174, 267, 184, 225, 181, 141, 129, 156, 116, 176, 116, 307, 151)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -15,3 +15,27 @@ func _on_meadow_interacted() -> void:
func _on_beach_interacted() -> void:
$kq4_013_beach.default_script(self)
func _on_stump_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "Yes, there's a tree stump in the middle of the meadow.")
).build(self, "_on_script_complete"))
func _on_bushes_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "Small, low bushes dot the pretty meadow. Wildflowers grow among them.")
).build(self, "_on_script_complete"))
func _on_rocks_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "Scattered rocks lie among the wildflowers of the meadow.")
).build(self, "_on_script_complete"))
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You stand in a green meadow filled with wildflowers.")
).build(self, "_on_script_complete"))

View File

@@ -5,6 +5,11 @@
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_abc"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_abc"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="5_setpiece"]
[ext_resource type="Resource" uid="uid://2pkuwanqqbcc8" path="res://scenes/kq4_014_green_meadow/stump_polygon.tres" id="6_stump"]
[ext_resource type="Resource" uid="uid://2iglz0lr1hm8x" path="res://scenes/kq4_014_green_meadow/bushes_polygon.tres" id="7_bushes"]
[ext_resource type="Resource" uid="uid://2xf4fwmakmnf9" path="res://scenes/kq4_014_green_meadow/rocks_polygon.tres" id="8_rocks"]
[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)])
@@ -88,11 +93,35 @@ position = Vector2(506, 555)
[node name="exit" parent="kq4_013_beach" index="1"]
position = Vector2(-64, 534)
[node name="stump" type="Polygon2D" parent="."]
scale = Vector2(6, 6)
polygon = PackedVector2Array(0, 0, 100, 0, 100, 50, 0, 50)
script = ExtResource("5_setpiece")
label = "Stump"
polygon_resource = ExtResource("6_stump")
[node name="bushes" type="Polygon2D" parent="."]
scale = Vector2(6, 6)
polygon = PackedVector2Array(0, 0, 100, 0, 100, 50, 0, 50)
script = ExtResource("5_setpiece")
label = "Bushes"
polygon_resource = ExtResource("7_bushes")
[node name="rocks" type="Polygon2D" parent="."]
scale = Vector2(6, 6)
polygon = PackedVector2Array(0, 0, 100, 0, 100, 50, 0, 50)
script = ExtResource("5_setpiece")
label = "Rocks"
polygon_resource = ExtResource("8_rocks")
[connection signal="interacted" from="kq4_013_beach" to="." method="_on_beach_interacted"]
[connection signal="interacted" from="kq4_008_back_of_fishermans_shack" to="." method="_on_back_of_fishermans_shack_interacted"]
[connection signal="interacted" from="kq4_015_frog_pond" to="." method="_on_frog_pond_interacted"]
[connection signal="interacted" from="kq4_020_meadow" to="." method="_on_meadow_interacted"]
[connection signal="looked" from="stump" to="." method="_on_stump_looked"]
[connection signal="looked" from="bushes" to="." method="_on_bushes_looked"]
[connection signal="looked" from="rocks" to="." method="_on_rocks_looked"]
[editable path="kq4_008_back_of_fishermans_shack"]
[editable path="kq4_015_frog_pond"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://vk1bi6il7i4w"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(317, 176, 267, 184, 235, 183, 141, 129, 156, 116, 175, 116, 317, 165)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://nprru7yru61v"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(184, 129, 184, 130, 172, 131, 141, 130, 142, 128, 156, 116, 175, 116)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://bghrjlvgh1yow"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2495, 0, 2495, 1391, 0, 1391, 0, 0)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1 @@
uid://3icunzb7gg3za

View File

@@ -19,3 +19,27 @@ func _on_bridge_over_stream_interacted() -> void:
func _on_shady_wooded_area_interacted_from_9() -> void:
$kq4_009_shady_wooded_area.default_script(self)
func _on_lilypads_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "Many water lilies float upon this little pond.")
).build(self, "_on_script_complete"))
func _on_pond_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "This is a very pretty little pond. Floating upon it are many beautiful water lilies.")
).build(self, "_on_script_complete"))
func _on_flowers_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You see flowers here and there.")
).build(self, "_on_script_complete"))
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "You stand beside a peaceful frog pond.")
).build(self, "_on_script_complete"))

View File

@@ -4,6 +4,10 @@
[ext_resource type="Texture2D" uid="uid://bil34dk1pnd7b" path="res://scenes/kq4_015_frog_pond/caption_2_2697930471_generated.png" id="2_erond"]
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_abc"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_abc"]
[ext_resource type="Resource" uid="uid://3v71oyr55gdir" path="res://scenes/kq4_015_frog_pond/lilypads_polygon.tres" id="5_abc"]
[ext_resource type="Resource" uid="uid://3icunzb7gg3za" path="res://scenes/kq4_015_frog_pond/flowers_polygon.tres" id="6_abc"]
[ext_resource type="Resource" uid="uid://39q63aoolsg51" path="res://scenes/kq4_015_frog_pond/pond_polygon.tres" id="7_abc"]
[ext_resource type="Script" uid="uid://bv7oxo5y5u6xo" path="res://SetPiece_.gd" id="8_abc"]
[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)
@@ -89,10 +93,28 @@ position = Vector2(118, 514)
[node name="exit" parent="kq4_021_bridge_over_stream" index="1"]
position = Vector2(151, 615)
[node name="lilypads" type="Polygon2D" parent="." instance=ExtResource("8_abc")]
scale = Vector2(0.78, 0.78)
polygon = PackedVector2Array(1132, 680, 1210, 700, 1237, 745, 1207, 795, 1127, 805, 1093, 760, 1103, 709)
label = "Lily Pads"
[node name="flowers" type="Polygon2D" parent="." instance=ExtResource("8_abc")]
scale = Vector2(0.78, 0.78)
polygon = PackedVector2Array(1527, 820, 1564, 814, 1584, 840, 1559, 866, 1527, 858)
label = "Flowers"
[node name="pond" type="Polygon2D" parent="." instance=ExtResource("8_abc")]
scale = Vector2(0.78, 0.78)
polygon = PackedVector2Array(952, 596, 1180, 597, 1339, 664, 1417, 780, 1391, 918, 1180, 964, 940, 891, 876, 769, 888, 657)
label = "Pond"
[connection signal="interacted" from="kq4_009_shady_wooded_area" to="." method="_on_shady_wooded_area_interacted"]
[connection signal="interacted" from="kq4_016_graveyard" to="." method="_on_graveyard_interacted"]
[connection signal="interacted" from="kq4_014_green_meadow" to="." method="_on_green_meadow_interacted"]
[connection signal="interacted" from="kq4_021_bridge_over_stream" to="." method="_on_bridge_over_stream_interacted"]
[connection signal="looked" from="lilypads" to="." method="_on_lilypads_looked"]
[connection signal="looked" from="pond" to="." method="_on_pond_looked"]
[connection signal="looked" from="flowers" to="." method="_on_flowers_looked"]
[editable path="kq4_009_shady_wooded_area"]
[editable path="kq4_016_graveyard"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://budxklde6077f"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(1568, 1006, 1500, 1067, 1323, 1098, 1235, 1091, 562, 845, 632, 802, 879, 807)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1 @@
uid://3v71oyr55gdir

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://b7v3xu8wnecuo"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(1912, 732, 1899, 982, 1735, 1046, 1068, 1174, 591, 1053, 389, 834, 466, 787, 919, 701, 1501, 678)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1 @@
uid://39q63aoolsg51

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://jwqdk5e17ucs"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2274, 760, 2254, 907, 1872, 1362, 1734, 1391, 542, 1139, 188, 965, 151, 710, 564, 606, 1723, 614)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -15,3 +15,21 @@ func _on_gnomes_cottage_interacted() -> void:
func _on_spooky_house_exterior_interacted() -> void:
$kq4_017_spooky_house_exterior.default_script(self)
func _on_gravestones_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "Each tombstone has an epitaph written on it.")
).build(self, "_on_script_complete"))
func _on_tree_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "An old, rotting tree adds appropriate charm to the decrepit cemetery.")
).build(self, "_on_script_complete"))
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "This run-down, gloomy cemetery gives you the creeps!")
).build(self, "_on_script_complete"))

View File

@@ -4,6 +4,9 @@
[ext_resource type="Texture2D" uid="uid://clkah304erwsa" path="res://scenes/kq4_016_graveyard/caption_1_2842997487_generated.png" id="2_8fbum"]
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_abc"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_abc"]
[ext_resource type="Resource" uid="uid://jwqdk5e17ucs" path="res://scenes/kq4_016_graveyard/gravestones_polygon.tres" id="5_gravestones"]
[ext_resource type="Resource" uid="uid://3j9gqpqwomat0" path="res://scenes/kq4_016_graveyard/tree_polygon.tres" id="6_tree"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="7_setpiece"]
[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)
@@ -94,6 +97,25 @@ position = Vector2(293, 554)
[connection signal="interacted" from="kq4_022_gnomes_cottage" to="." method="_on_gnomes_cottage_interacted"]
[connection signal="interacted" from="kq4_017_spooky_house_exterior" to="." method="_on_spooky_house_exterior_interacted"]
[node name="gravestones" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(0.78, 0.78)
color = Color(0.5, 0.5, 0.5, 0.25)
polygon = PackedVector2Array(2274, 760, 2254, 907, 1872, 1362, 1734, 1391, 542, 1139, 188, 965, 151, 710, 564, 606, 1723, 614)
script = ExtResource("7_setpiece")
label = "Gravestones"
points_resource = ExtResource("5_gravestones")
[node name="tree" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(0.78, 0.78)
color = Color(0.5, 0.5, 0.5, 0.25)
polygon = PackedVector2Array(2274, 377, 2095, 619, 1935, 756, 1185, 1239, 6, 434, 578, 0, 1845, 7)
script = ExtResource("7_setpiece")
label = "Tree"
points_resource = ExtResource("6_tree")
[connection signal="looked" from="gravestones" to="." method="_on_gravestones_looked"]
[connection signal="looked" from="tree" to="." method="_on_tree_looked"]
[editable path="kq4_015_frog_pond"]
[editable path="kq4_010_forest_path"]
[editable path="kq4_022_gnomes_cottage"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://bifdmcb5p65jn"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2274, 377, 2095, 619, 1935, 756, 1185, 1239, 6, 434, 578, 0, 1845, 7)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://j7s02kx0ru0m"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(0, 1391, 0, 0, 2495, 0, 2495, 1391)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://2vgpfkv8f2tr"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(882, 0, 228, 447, 811, 957, 293, 1014, 1052, 1378, 0, 1391, 0, 0)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://3ahmhpj2iq2t"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2495, 1391, 1443, 1388, 2171, 1108, 1618, 1037, 2200, 634, 2069, 0, 2495, 0)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://1pa1muindps"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(978, 0, 2044, 0, 1992, 28, 1999, 181, 1879, 45, 978, 49, 976, 26)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://s8bt0fvboqi4"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(1709, 873, 1701, 881, 1706, 888, 1750, 909, 1739, 910, 1699, 885, 1683, 890)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -15,3 +15,15 @@ func _on_forest_path_with_cottage_interacted() -> void:
func _on_cemetery_interacted() -> void:
$kq4_018_cemetery.default_script(self)
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "Indeed, this is a spooky old house! It looks as if no one has lived here for many years. Flanking the old house on both sides is a run-down cemetery. A thick forest looms all around.")
).build(self, "_on_script_complete"))
func _on_house_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "The old house looks abandoned and decrepit. Windows are boarded up and the door hangs off its hinges.")
).build(self, "_on_script_complete"))

View File

@@ -4,6 +4,8 @@
[ext_resource type="Texture2D" uid="uid://bmxs6lml73kld" path="res://scenes/kq4_017_spooky_house_exterior/caption_2_3103518838_generated.png" id="2_j6qr1"]
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_abc"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_abc"]
[ext_resource type="Resource" uid="uid://24qjts0n6t644" path="res://scenes/kq4_017_spooky_house_exterior/house_polygon_0.tres" id="5_house"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="6_setpiece"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_ppo6b"]
vertices = PackedVector2Array(374.47656, 1145.0078, -140.75781, 1180.2031, -76.11719, 588.6797, -53.679688, 490.4922, 1222.4688, 227.3125, 1994.2422, 468.4297, 2012.7031, 1020.2031, 1268.1875, 1113.0234)
@@ -93,6 +95,16 @@ position = Vector2(-64, 534)
[connection signal="interacted" from="kq4_023_forest_path_with_cottage" to="." method="_on_forest_path_with_cottage_interacted"]
[connection signal="interacted" from="kq4_016_graveyard" to="." method="_on_graveyard_interacted"]
[node name="house" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(0.78, 0.78)
color = Color(0.5, 0.5, 0.5, 0.25)
polygon = PackedVector2Array(882, 0, 228, 447, 811, 957, 293, 1014, 1052, 1378, 0, 1391, 0, 0)
script = ExtResource("6_setpiece")
label = "Spooky House"
points_resource = ExtResource("5_house")
[connection signal="looked" from="house" to="." method="_on_house_looked"]
[editable path="kq4_011_enchanted_grove"]
[editable path="kq4_018_cemetery"]
[editable path="kq4_023_forest_path_with_cottage"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://dlrpv3krmlfuu"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(1925, 937, 1724, 1085, 1085, 1042, 693, 911, 616, 737, 1304, 640, 1625, 696)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -11,3 +11,15 @@ func _on_waterfall_and_pool_interacted() -> void:
func _on_spooky_house_exterior_interacted() -> void:
$kq4_017_spooky_house_exterior.default_script(self)
func _on_gravestones_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "Each tombstone has an epitaph written on it.")
).build(self, "_on_script_complete"))
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "This is a scary old cemetery!")
).build(self, "_on_script_complete"))

View File

@@ -4,6 +4,8 @@
[ext_resource type="Texture2D" uid="uid://l672jbh4shwf" path="res://scenes/kq4_018_cemetery/caption_3_4052088499_generated.png" id="2_2e0gx"]
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_abc"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_abc"]
[ext_resource type="Resource" uid="uid://1r7xgf3azsofg" path="res://scenes/kq4_018_cemetery/gravestones_polygon.tres" id="5_gravestones"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="6_setpiece"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_ppo6b"]
vertices = PackedVector2Array(374.47656, 1145.0078, -140.75781, 1180.2031, -76.11719, 588.6797, -53.679688, 490.4922, 1222.4688, 227.3125, 1994.2422, 468.4297, 2012.7031, 1020.2031, 1268.1875, 1113.0234)
@@ -78,6 +80,16 @@ position = Vector2(-64, 534)
[connection signal="interacted" from="kq4_024_waterfall_and_pool" to="." method="_on_waterfall_and_pool_interacted"]
[connection signal="interacted" from="kq4_017_spooky_house_exterior" to="." method="_on_spooky_house_exterior_interacted"]
[node name="gravestones" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(0.78, 0.78)
color = Color(0.5, 0.5, 0.5, 0.25)
polygon = PackedVector2Array(1925, 937, 1724, 1085, 1085, 1042, 693, 911, 616, 737, 1304, 640, 1625, 696)
script = ExtResource("6_setpiece")
label = "Gravestones"
points_resource = ExtResource("5_gravestones")
[connection signal="looked" from="gravestones" to="." method="_on_gravestones_looked"]
[editable path="kq4_012_haunted_forest"]
[editable path="kq4_024_waterfall_and_pool"]
[editable path="kq4_017_spooky_house_exterior"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://b6bnrixp1agto"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(4095, 2339, 1631, 2339, 1224, 2312, 300, 890, 3081, 0, 4064, 0, 4095, 549)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -15,3 +15,15 @@ func _on_beach_at_river_delta_interacted() -> void:
func _on_open_ocean_interacted() -> void:
$kq4_031_open_ocean.default_script(self)
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,8 +1,10 @@
[gd_scene load_steps=5 format=3 uid="uid://3eh8ys3v25m45"]
[gd_scene load_steps=8 format=3 uid="uid://3eh8ys3v25m45"]
[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)
@@ -70,6 +72,16 @@ position = Vector2(150, 450)
[connection signal="interacted" from="kq4_025_beach_at_river_delta" to="." method="_on_beach_at_river_delta_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"]

View File

@@ -15,3 +15,15 @@ func _on_oceanside_interacted() -> void:
func _on_river_meadow_interacted() -> void:
$kq4_026_river_meadow.default_script(self)
func _on_room_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "A green meadowland, filled with beautiful wildflowers, surrounds you.")
).build(self, "_on_script_complete"))
func _on_meadow_looked() -> void:
start_main_script(ScriptBuilder.init(
ScriptBuilder.say(ego, "The meadow is filled with wildflowers and tall grass. A few trees dot the landscape.")
).build(self, "_on_script_complete"))

View File

@@ -5,6 +5,8 @@
[ext_resource type="Script" uid="uid://xmphq3i0wbg3" path="res://ScalePoint_.gd" id="3_6lc2m"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="4_nrc7r"]
[ext_resource type="Texture2D" uid="uid://2wfp64i5brcn" path="res://scenes/kq4_020_meadow/tree.png" id="5_ppo6b"]
[ext_resource type="Resource" uid="uid://3db4xmv5e6m2q" path="res://scenes/kq4_020_meadow/meadow_polygon_0.tres" id="6_meadow"]
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="7_setpiece"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_ppo6b"]
vertices = PackedVector2Array(1263.16, 1113.2, 424.328, 1143.23, 1026.63, 865.109, 1359.65, 949.383, 1238.89, 383.039, 1994.29, 469.938, 2012.62, 1017.85, 1025.28, 850.992, -53.8672, 491.352, -74.0469, 579.641)
@@ -102,6 +104,16 @@ offset = Vector2(-289.042, -723.963)
[connection signal="interacted" from="kq4_019_coastal_cliffs" to="." method="_on_oceanside_interacted"]
[connection signal="interacted" from="kq4_026_river_meadow" to="." method="_on_river_meadow_interacted"]
[node name="meadow" type="Polygon2D" parent="." groups=["set-piece"]]
scale = Vector2(0.470459, 0.467949)
color = Color(0.5, 0.5, 0.5, 0.25)
polygon = PackedVector2Array(3927, 328, 2766, 1026, 3740, 1025, 3550, 1674, 2584, 1967, 1192, 1529, 864, 266)
script = ExtResource("7_setpiece")
label = "Meadow"
points_resource = ExtResource("6_meadow")
[connection signal="looked" from="meadow" to="." method="_on_meadow_looked"]
[editable path="kq4_014_green_meadow"]
[editable path="kq4_021_bridge_over_stream"]
[editable path="kq4_019_coastal_cliffs"]

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://bbg1s8hegrire"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(3927, 328, 2766, 1026, 3740, 1025, 3550, 1674, 2584, 1967, 1192, 1529, 864, 266)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://h1r0fnd0i711"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(1483, 0, 1525, 76, 1640, 47, 1624, 115, 1709, 88, 1637, 162, 1467, 181, 1247, 0)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://vb8xoppcvhkf"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(80, 599, 69, 604, 74, 649, 57, 632, 40, 643, 0, 619, 0, 551)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://dq308802h064c"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(1854, 109, 1740, 142, 1689, 173, 1682, 169, 1707, 132, 1741, 103, 1766, 96, 1866, 98)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://jbpvuahkq7h2"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(83, 798, 90, 913, 56, 854, 0, 861, 0, 837, 49, 817, 65, 793)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://bmp0ugjy8dfgw"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(3462, 1961, 3397, 1961, 3411, 1978, 3371, 1996, 3425, 2004, 3410, 2020, 3349, 2008, 3416, 1917, 3484, 1930)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://c6mt2wrl4n3j0"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(1845, 134, 1938, 169, 1916, 169, 1897, 156, 1879, 158, 1877, 185, 1889, 215, 1781, 156)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://yaj62dy2vfng"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(822, 28, 864, 18, 859, 10, 821, 20, 815, 0, 943, 0, 823, 65)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://bnc15escheuph"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2943, 2275, 2911, 2280, 2907, 2308, 2857, 2282, 2870, 2271, 2858, 2255, 2884, 2256, 2890, 2231)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://vvh7s8nrgfue"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(120, 1261, 111, 1296, 84, 1318, 73, 1312, 70, 1284, 27, 1279, 60, 1247)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://djnq665dp6f2d"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2834, 2187, 2850, 2165, 2886, 2177, 2874, 2192, 2897, 2202, 2871, 2202, 2862, 2225, 2821, 2222, 2807, 2186)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://33ssd0od5bjw"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(2813, 2277, 2818, 2303, 2796, 2293, 2776, 2304, 2749, 2287, 2768, 2250, 2801, 2243, 2831, 2259)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://nwcyvkk6rven"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(4034, 1286, 4061, 1273, 4073, 1291, 4051, 1437, 4016, 1422, 4000, 1350, 3954, 1313, 3988, 1177)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://lu6iot21shqw"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(3104, 2215, 3112, 2230, 3081, 2224, 3071, 2243, 3046, 2214, 3087, 2183, 3119, 2200)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://w2xwpqxkr0pm"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(1583, 1786, 1538, 1782, 1538, 1811, 1492, 1787, 1544, 1774, 1540, 1756, 1583, 1768)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

View File

@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://btgkgytcg3lqq"]
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
[resource]
script = ExtResource("1_ppr")
points = PackedVector2Array(3356, 1130, 3306, 1119, 3329, 1117, 3332, 1102, 3349, 1090, 3362, 1098, 3379, 1089, 3396, 1101)
metadata/_custom_type_script = "uid://dtemboas3bi8y"

Some files were not shown because too many files have changed in this diff Show More