progress
This commit is contained in:
7
scenes/kq4_007_fishermans_shack/door_polygon.tres
Normal file
7
scenes/kq4_007_fishermans_shack/door_polygon.tres
Normal 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)
|
||||
@@ -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"
|
||||
@@ -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"))
|
||||
|
||||
@@ -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"]
|
||||
|
||||
7
scenes/kq4_007_fishermans_shack/pier_polygon.tres
Normal file
7
scenes/kq4_007_fishermans_shack/pier_polygon.tres
Normal 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)
|
||||
7
scenes/kq4_007_fishermans_shack/window_polygon.tres
Normal file
7
scenes/kq4_007_fishermans_shack/window_polygon.tres
Normal 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)
|
||||
Reference in New Issue
Block a user