interior
This commit is contained in:
@@ -4,11 +4,7 @@ func _on_room_looked() -> void:
|
||||
pass
|
||||
|
||||
func _on_kq4_068_the_foyer_interacted() -> void:
|
||||
var target_scene = load("res://scenes/kq4_068_the_foyer/kq4_068_the_foyer.tscn")
|
||||
if target_scene:
|
||||
get_tree().change_scene_to_packed(target_scene)
|
||||
$kq4_068_the_foyer.default_script(self)
|
||||
|
||||
func _on_kq4_065_old_kitchen_interacted() -> void:
|
||||
var target_scene = load("res://scenes/kq4_065_old_kitchen/kq4_065_old_kitchen.tscn")
|
||||
if target_scene:
|
||||
get_tree().change_scene_to_packed(target_scene)
|
||||
$kq4_065_old_kitchen.default_script(self)
|
||||
|
||||
@@ -1,67 +1,68 @@
|
||||
[gd_scene format=3 uid="uid://2y0sti59qypsl"]
|
||||
[gd_scene format=3 uid="uid://w5po4qisklh8"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/kq4_064_old_dining_room/kq4_064_old_dining_room.gd" id="1_script"]
|
||||
[ext_resource type="Texture2D" path="res://scenes/kq4_064_old_dining_room/064_caption_1_919373381_generated.png" id="2_texture"]
|
||||
[ext_resource type="Script" uid="uid://d3kmlrjnbpkdt" path="res://scenes/kq4_064_old_dining_room/kq4_064_old_dining_room.gd" id="1_script"]
|
||||
[ext_resource type="Texture2D" uid="uid://dsa2v7xlntaju" path="res://scenes/kq4_064_old_dining_room/064_caption_1_919373381_generated.png" id="2_texture"]
|
||||
[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_transition"]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="NavigationPolygon_main"]
|
||||
vertices = PackedVector2Array(100, 800, 1800, 800, 1800, 1200, 100, 1200)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(100, 800, 1800, 800, 1800, 1200, 100, 1200)])
|
||||
vertices = PackedVector2Array(394.03906, 779.27344, 191.99219, 743.5078, 323.28906, 711.96875, 454.60156, 764.6172, 1423.8125, 754.59375, 1258.7109, 673.97656, 1197.5781, 607.21094, 1316.4766, 625.5703, 1535.4063, 759.09375, 401.29688, 970.5469, 251.47656, 911.8828, 397.29688, 791.6406, 494.85938, 875.6328, 525.65625, 1008.0469, 1610.6172, 904.5625, 1464.8125, 927.7031, 1253.7031, 685.8203, 962.8828, 777.9922, 1735.9375, 1055.1328)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(4, 5, 6, 7, 8), PackedInt32Array(9, 10, 11, 3, 12, 13), PackedInt32Array(8, 14, 15, 4), PackedInt32Array(16, 5, 4), PackedInt32Array(2, 16, 4, 17, 3), PackedInt32Array(11, 0, 3), PackedInt32Array(13, 12, 15, 18), PackedInt32Array(18, 15, 14)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(322, 702, 1247, 676, 1171, 593, 1320, 616, 1543, 752, 1619, 899, 1758, 1066, 524, 1018, 398, 980, 232, 915, 386, 788, 143, 745), PackedVector2Array(963, 788, 469, 775, 502, 866, 1452, 917, 1416, 765)])
|
||||
|
||||
[node name="background" type="Node2D"]
|
||||
[node name="background" type="Node2D" unique_id=25704140]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1_script")
|
||||
|
||||
[node name="bg" type="Sprite2D" parent="."]
|
||||
[node name="bg" type="Sprite2D" parent="." unique_id=139422996]
|
||||
scale = Vector2(0.78, 0.78)
|
||||
texture = ExtResource("2_texture")
|
||||
centered = false
|
||||
|
||||
[node name="StartScalePoint" type="Node2D" parent="."]
|
||||
[node name="StartScalePoint" type="Node2D" parent="." unique_id=729538493]
|
||||
position = Vector2(200, 900)
|
||||
script = ExtResource("3_scale")
|
||||
target_scale = 0.3
|
||||
|
||||
[node name="EndScalePoint" type="Node2D" parent="."]
|
||||
[node name="EndScalePoint" type="Node2D" parent="." unique_id=387993488]
|
||||
position = Vector2(1800, 1100)
|
||||
script = ExtResource("3_scale")
|
||||
target_scale = 0.4
|
||||
|
||||
[node name="pathfind" type="NavigationRegion2D" parent="."]
|
||||
[node name="pathfind" type="NavigationRegion2D" parent="." unique_id=2071550797]
|
||||
navigation_polygon = SubResource("NavigationPolygon_main")
|
||||
|
||||
[node name="default-starting-point" type="Node2D" parent="."]
|
||||
[node name="default-starting-point" type="Node2D" parent="." unique_id=1702792888]
|
||||
position = Vector2(200, 900)
|
||||
|
||||
[node name="kq4_068_the_foyer" parent="." instance=ExtResource("4_transition")]
|
||||
position = Vector2(910, 200)
|
||||
polygon = PackedVector2Array(-108, 454, -87, 649, 376, 658, 348, 381)
|
||||
[node name="kq4_068_the_foyer" parent="." unique_id=1994564203 instance=ExtResource("4_transition")]
|
||||
position = Vector2(351, -41)
|
||||
polygon = PackedVector2Array(-108, 454, -102, 844, 78, 811, 108, 429)
|
||||
appear_at_node = "kq4_064_old_dining_room"
|
||||
target = "uid://3hb2kqpkpvmnj"
|
||||
label = "068 The Foyer"
|
||||
|
||||
[node name="entrance" parent="kq4_068_the_foyer" index="0"]
|
||||
position = Vector2(133, 643)
|
||||
position = Vector2(168, 787)
|
||||
|
||||
[node name="exit" parent="kq4_068_the_foyer" index="1"]
|
||||
position = Vector2(174, 519)
|
||||
position = Vector2(-97, 787)
|
||||
|
||||
[node name="kq4_065_old_kitchen" parent="." instance=ExtResource("4_transition")]
|
||||
position = Vector2(910, 1400)
|
||||
polygon = PackedVector2Array(-108, 454, -87, 649, 376, 658, 348, 381)
|
||||
[node name="kq4_065_old_kitchen" parent="." unique_id=757373723 instance=ExtResource("4_transition")]
|
||||
position = Vector2(1217, -17)
|
||||
polygon = PackedVector2Array(-49, 358, -18, 700, 179, 703, 181, 351)
|
||||
appear_at_node = "kq4_064_old_dining_room"
|
||||
target = "uid://3am8ohkla4wr9"
|
||||
label = "065 Old Kitchen"
|
||||
|
||||
[node name="entrance" parent="kq4_065_old_kitchen" index="0"]
|
||||
position = Vector2(133, 643)
|
||||
position = Vector2(139, 711)
|
||||
|
||||
[node name="exit" parent="kq4_065_old_kitchen" index="1"]
|
||||
position = Vector2(174, 519)
|
||||
position = Vector2(50, 651)
|
||||
|
||||
[connection signal="interacted" from="kq4_068_the_foyer" to="." method="_on_kq4_068_the_foyer_interacted"]
|
||||
[connection signal="interacted" from="kq4_065_old_kitchen" to="." method="_on_kq4_065_old_kitchen_interacted"]
|
||||
|
||||
[editable path="kq4_068_the_foyer"]
|
||||
[editable path="kq4_065_old_kitchen"]
|
||||
[editable path="kq4_065_old_kitchen"]
|
||||
|
||||
Reference in New Issue
Block a user