progress
This commit is contained in:
@@ -11,3 +11,15 @@ func _on_island_beach_interacted() -> void:
|
||||
|
||||
func _on_fairy_island_interacted() -> void:
|
||||
$kq4_037_fairy_island.default_script(self)
|
||||
|
||||
|
||||
func _on_room_looked() -> void:
|
||||
start_main_script(ScriptBuilder.init(
|
||||
ScriptBuilder.say(ego, "You are standing in the lovely garden of this enchanted island. Beside you, rises a grand ivory palace. Within this garden, a bridge, emblazoned with the figures of swans, arches over a little pond. A beautiful white swan floats serenely upon it.")
|
||||
).build(self, "_on_script_complete"))
|
||||
|
||||
|
||||
func _on_pond_looked() -> void:
|
||||
start_main_script(ScriptBuilder.init(
|
||||
ScriptBuilder.say(ego, "A tranquil pond with lily pads and a graceful swan swimming lazily.")
|
||||
).build(self, "_on_script_complete"))
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
[ext_resource type="Texture2D" uid="uid://263f4bktun4fa" path="res://scenes/kq4_036_island_garden_pond/pic_036_visual.png" id="2_36vis"]
|
||||
[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_trans"]
|
||||
[ext_resource type="Resource" uid="uid://39ikao3yv25dc" path="res://scenes/kq4_036_island_garden_pond/pond_polygon_0.tres" id="5_pond"]
|
||||
[ext_resource type="Script" uid="uid://bounwnqg34t5k" path="res://SetPiece_.gd" id="6_setpiece"]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="NavigationPolygon_36pond"]
|
||||
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)
|
||||
@@ -80,6 +82,16 @@ position = Vector2(293, 554)
|
||||
[connection signal="interacted" from="kq4_039_island_beach" to="." method="_on_island_beach_interacted"]
|
||||
[connection signal="interacted" from="kq4_037_fairy_island" to="." method="_on_fairy_island_interacted"]
|
||||
|
||||
[node name="pond" type="Polygon2D" parent="." groups=["set-piece"]]
|
||||
scale = Vector2(6, 6)
|
||||
color = Color(0.5, 0.5, 0.5, 0.25)
|
||||
polygon = PackedVector2Array(133, 69, 240, 69, 232, 108, 250, 126, 132, 134, 138, 88, 119, 86)
|
||||
script = ExtResource("6_setpiece")
|
||||
label = "Garden Pond"
|
||||
points_resource = ExtResource("5_pond")
|
||||
|
||||
[connection signal="looked" from="pond" to="." method="_on_pond_looked"]
|
||||
|
||||
[editable path="kq4_033_enchanted_island_beach"]
|
||||
[editable path="kq4_039_island_beach"]
|
||||
[editable path="kq4_037_fairy_island"]
|
||||
|
||||
8
scenes/kq4_036_island_garden_pond/pond_polygon_0.tres
Normal file
8
scenes/kq4_036_island_garden_pond/pond_polygon_0.tres
Normal file
@@ -0,0 +1,8 @@
|
||||
[gd_resource type="Resource" script_class="PolygonPointsResource" format=3 uid="uid://b7ng5bn7xn01y"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dtemboas3bi8y" path="res://PolygonPointsResource.gd" id="1_ppr"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_ppr")
|
||||
points = PackedVector2Array(133, 69, 240, 69, 232, 108, 250, 126, 132, 134, 138, 88, 119, 86)
|
||||
metadata/_custom_type_script = "uid://dtemboas3bi8y"
|
||||
Reference in New Issue
Block a user