wiring up

This commit is contained in:
2026-05-06 23:25:39 -04:00
parent cc051a1e15
commit 586dc8860c
17 changed files with 226 additions and 196 deletions

View File

@@ -1,14 +1,14 @@
extends Scene
func _on_room_looked() -> void:
pass
pass
func _on_kq4_080_lolottes_castle_entrance_interacted() -> void:
var target_scene = load("res://scenes/kq4_080_lolottes_castle_entrance/kq4_080_lolottes_castle_entrance.tscn")
if target_scene:
get_tree().change_scene_to_packed(target_scene)
var target_scene = load("res://scenes/kq4_080_lolottes_castle_entrance/kq4_080_lolottes_castle_entrance.tscn")
if target_scene:
get_tree().change_scene_to_packed(target_scene)
func _on_kq4_030_mountain_pass_interacted() -> void:
var target_scene = load("res://scenes/kq4_030_mountain_pass/kq4_030_mountain_pass.tscn")
if target_scene:
get_tree().change_scene_to_packed(target_scene)
var target_scene = load("res://scenes/kq4_030_mountain_pass/kq4_030_mountain_pass.tscn")
if target_scene:
get_tree().change_scene_to_packed(target_scene)

View File

@@ -1,42 +1,42 @@
[gd_scene format=3 uid="uid://1q1az2h3p2ebd"]
[gd_scene format=3 uid="uid://dkk2hpylct4qr"]
[ext_resource type="Script" path="res://scenes/kq4_079_mountain_path_to_dark_castle/kq4_079_mountain_path_to_dark_castle.gd" id="1_script"]
[ext_resource type="Texture2D" path="res://scenes/kq4_079_mountain_path_to_dark_castle/pic_079_visual.png" id="2_texture"]
[ext_resource type="Script" uid="uid://cw8errw8nqi6y" path="res://scenes/kq4_079_mountain_path_to_dark_castle/kq4_079_mountain_path_to_dark_castle.gd" id="1_script"]
[ext_resource type="Texture2D" uid="uid://d03lbdn4vgncj" path="res://scenes/kq4_079_mountain_path_to_dark_castle/079_1386122277_generated.png" id="2_hy2d8"]
[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(1136.8906, 64.703125, 358.90625, 366.17188, 419.04688, 249.14063, 1094.7734, 16.296875, 1779.6719, 142.52344, 1714.5469, 155.14844, 1769.6484, 164.92188, 1714.1328, 172.67969, 1466.4922, 224.92188, 1734.0938, 284.04688, 1720.6406, 299, 1606.2891, 274.45313, 1369.6484, 209.65625, 1709.9063, 185.14063, 1467.5469, 207.84375, 1605.7031, 290.29688, 1211.9688, 422.64844, 1051.3828, 398.45313, 1152.7031, 1174.1016, 110, 1189.8438, 110, 806.97656, 592.27344, 629.8203, 818.75, 778.9219, 1232.4922, 929.09375, 819.2578, 764.3672, 1318.3516, 558.22656, 1669.9375, 522.1406, 1321.2578, 543.7031, 1212.4375, 438.84375)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(0, 3, 4, 5), PackedInt32Array(5, 4, 6, 7), PackedInt32Array(8, 9, 10, 11, 12), PackedInt32Array(7, 6, 13), PackedInt32Array(12, 7, 13, 14), PackedInt32Array(12, 14, 8), PackedInt32Array(15, 11, 10), PackedInt32Array(15, 10, 16, 17), PackedInt32Array(18, 19, 20, 21, 22), PackedInt32Array(22, 23, 18), PackedInt32Array(24, 22, 21), PackedInt32Array(24, 21, 25), PackedInt32Array(26, 24, 25), PackedInt32Array(26, 25, 27), PackedInt32Array(28, 26, 27), PackedInt32Array(28, 27, 17), PackedInt32Array(17, 16, 28)])
outlines = Array[PackedVector2Array]([PackedVector2Array(100, 800, 590, 620, 1310, 549, 1022, 394, 1596, 282, 1333, 210, 1366, 200, 1704.3467, 163.67021, 1138, 75, 338, 385, 412, 241, 1094, 6, 1794, 135, 1777, 173, 1712, 195, 1477, 217, 1753, 278, 1726, 308, 1222.1968, 430.45203, 1714, 520, 829, 772, 1245, 923, 1160, 1184, 100, 1200)])
[node name="background" type="Node2D"]
[node name="background" type="Node2D" unique_id=196430983]
y_sort_enabled = true
script = ExtResource("1_script")
[node name="bg" type="Sprite2D" parent="."]
scale = Vector2(6, 6)
texture = ExtResource("2_texture")
[node name="bg" type="Sprite2D" parent="." unique_id=1747494727]
scale = Vector2(1.46, 1.46)
texture = ExtResource("2_hy2d8")
centered = false
[node name="StartScalePoint" type="Node2D" parent="."]
[node name="StartScalePoint" type="Node2D" parent="." unique_id=514650110]
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=1364851781]
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=1711621734]
navigation_polygon = SubResource("NavigationPolygon_main")
[node name="default-starting-point" type="Node2D" parent="."]
[node name="default-starting-point" type="Node2D" parent="." unique_id=2006762010]
position = Vector2(200, 900)
[node name="kq4_080_lolottes_castle_entrance" parent="." instance=ExtResource("4_transition")]
position = Vector2(910, 200)
[node name="kq4_080_lolottes_castle_entrance" parent="." unique_id=1381674775 instance=ExtResource("4_transition")]
position = Vector2(263, -285)
polygon = PackedVector2Array(-108, 454, -87, 649, 376, 658, 348, 381)
appear_at_node = "kq4_079_mountain_path_to_dark_castle"
target = "uid://2el0d6jeg0kxx"
@@ -48,8 +48,8 @@ position = Vector2(133, 643)
[node name="exit" parent="kq4_080_lolottes_castle_entrance" index="1"]
position = Vector2(174, 519)
[node name="kq4_030_mountain_pass" parent="." instance=ExtResource("4_transition")]
position = Vector2(910, 1400)
[node name="kq4_030_mountain_pass" parent="." unique_id=1693927691 instance=ExtResource("4_transition")]
position = Vector2(341, 567)
polygon = PackedVector2Array(-108, 454, -87, 649, 376, 658, 348, 381)
appear_at_node = "kq4_079_mountain_path_to_dark_castle"
target = "uid://7dfmw11k58wd"
@@ -63,5 +63,6 @@ position = Vector2(174, 519)
[connection signal="interacted" from="kq4_080_lolottes_castle_entrance" to="." method="_on_kq4_080_lolottes_castle_entrance_interacted"]
[connection signal="interacted" from="kq4_030_mountain_pass" to="." method="_on_kq4_030_mountain_pass_interacted"]
[editable path="kq4_080_lolottes_castle_entrance"]
[editable path="kq4_030_mountain_pass"]
[editable path="kq4_030_mountain_pass"]