progress
This commit is contained in:
8
scenes/kq4_002_meadow/boulder_polygon.tres
Normal file
8
scenes/kq4_002_meadow/boulder_polygon.tres
Normal 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"
|
||||
6
scenes/kq4_002_meadow/bush_polygon.tres
Normal file
6
scenes/kq4_002_meadow/bush_polygon.tres
Normal 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")
|
||||
@@ -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"))
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user