Made map loading work
This commit is contained in:
104
maps/MapTundra/TestMapTundra.tscn
Normal file
104
maps/MapTundra/TestMapTundra.tscn
Normal file
@@ -0,0 +1,104 @@
|
||||
[gd_scene load_steps=13 format=3 uid="uid://b16ysbx7ah03u"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bicg5j33d72ld" path="res://maps/MapTundra/BaseMapTundra.tscn" id="1_2gju5"]
|
||||
[ext_resource type="PackedScene" uid="uid://2ch34sio36nv" path="res://entities/Player.tscn" id="2_rlkm5"]
|
||||
[ext_resource type="Script" uid="uid://csb0i132lcu0w" path="res://entities/MapCamera.gd" id="3_n77mx"]
|
||||
[ext_resource type="PackedScene" uid="uid://bng2mc7fu5aik" path="res://entities/NPC.tscn" id="4_nb1wl"]
|
||||
[ext_resource type="Script" uid="uid://chxpes3546yoj" path="res://cutscene/Cutscene.gd" id="5_m5dm6"]
|
||||
[ext_resource type="Script" uid="uid://8updtj1mctra" path="res://cutscene/item/CutsceneText.gd" id="6_fws1a"]
|
||||
[ext_resource type="PackedScene" uid="uid://cr6h3g15bf6ts" path="res://MapChangeInteract.tscn" id="8_epq12"]
|
||||
|
||||
[sub_resource type="Curve3D" id="Curve3D_n77mx"]
|
||||
_data = {
|
||||
"points": PackedVector3Array(-0.483396, -0.178879, 4.24736, 0.483396, 0.178879, -4.24736, 7.21406, 2.10688, 14.3008, 0, 0, 0, 0, 0, 0, 10.7626, 2.77149, 5.10037, -1.66175, 0.968716, 12.1186, 1.66175, -0.968716, -12.1186, 20.1087, 3.31252, -17.463),
|
||||
"tilts": PackedFloat32Array(0, 0, 0)
|
||||
}
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="Curve3D" id="Curve3D_nb1wl"]
|
||||
_data = {
|
||||
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 1.73319, 1.18547, 19.4148, -2.67718, -1.0831, 5.13669, 2.67718, 1.0831, -5.13669, 2.2062, 1.21935, 8.22687, -3.3053, -0.230669, 4.7331, 3.3053, 0.230669, -4.7331, 4.50778, 0.70057, -6.92138, 0, 0, 0, 0, 0, 0, 10.6352, 0.696404, -20.7808),
|
||||
"tilts": PackedFloat32Array(0, 0, 0, 0)
|
||||
}
|
||||
point_count = 4
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_u6bnu"]
|
||||
size = Vector3(5.41431, 3.90259, 3.33496)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_epq12"]
|
||||
size = Vector3(10.521, 3.90259, 3.33496)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_yhikq"]
|
||||
size = Vector3(5.41431, 3.90259, 2.43964)
|
||||
|
||||
[node name="TestScene" type="Node3D"]
|
||||
|
||||
[node name="MapTundra" parent="." instance=ExtResource("1_2gju5")]
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("2_rlkm5")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.18123, 1.54702, 6.35532)
|
||||
|
||||
[node name="NPC" parent="." instance=ExtResource("4_nb1wl")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.94096, 1.94676, -8.39115)
|
||||
interactType = 1
|
||||
interactTexts = Array[String](["test"])
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="." node_paths=PackedStringArray("targetFollow", "pathFollow", "pathMap")]
|
||||
transform = Transform3D(-0.179663, -0.124983, 0.975756, 0, 0.991896, 0.12705, -0.983728, 0.0228261, -0.178207, 11.1616, 2.84653, 4.53257)
|
||||
fov = 57.5
|
||||
script = ExtResource("3_n77mx")
|
||||
targetFollow = NodePath("../Player")
|
||||
pathFollow = NodePath("../PathCamera/PathFollow3D")
|
||||
pathMap = NodePath("../PathWorld")
|
||||
metadata/_custom_type_script = "uid://csb0i132lcu0w"
|
||||
|
||||
[node name="PathCamera" type="Path3D" parent="."]
|
||||
curve = SubResource("Curve3D_n77mx")
|
||||
|
||||
[node name="PathFollow3D" type="PathFollow3D" parent="PathCamera"]
|
||||
transform = Transform3D(0.826378, -0.0298339, -0.562123, -0.0341959, 0.993954, -0.103028, 0.56187, 0.104372, 0.820481, 11.1616, 2.84653, 4.53253)
|
||||
progress = 10.6482
|
||||
loop = false
|
||||
|
||||
[node name="PathWorld" type="Path3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0606813, -0.0198746, 0.134638)
|
||||
curve = SubResource("Curve3D_nb1wl")
|
||||
|
||||
[node name="Cutscenes" type="Node" parent="."]
|
||||
|
||||
[node name="TestCutscene" type="Node" parent="Cutscenes"]
|
||||
script = ExtResource("5_m5dm6")
|
||||
|
||||
[node name="CutsceneText" type="Node" parent="Cutscenes/TestCutscene"]
|
||||
script = ExtResource("6_fws1a")
|
||||
interactTexts = Array[String](["test cutscene item 1", "tttt2"])
|
||||
metadata/_custom_type_script = "uid://8updtj1mctra"
|
||||
|
||||
[node name="CutsceneText2" type="Node" parent="Cutscenes/TestCutscene"]
|
||||
script = ExtResource("6_fws1a")
|
||||
interactTexts = Array[String](["3", "4"])
|
||||
metadata/_custom_type_script = "uid://8updtj1mctra"
|
||||
|
||||
[node name="MapChangeInteract" parent="." instance=ExtResource("8_epq12")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.63736, 0, 0.933406)
|
||||
|
||||
[node name="ChildOutsideScene" type="CollisionShape3D" parent="MapChangeInteract"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.96407, 1.69859, 0.859571)
|
||||
shape = SubResource("BoxShape3D_u6bnu")
|
||||
debug_color = Color(0.537255, 0.698039, 0, 1)
|
||||
|
||||
[node name="MapChangeInteract2" parent="." instance=ExtResource("8_epq12")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.10542, 9.53674e-07, 24.2305)
|
||||
|
||||
[node name="ChildOutsideScene2" type="CollisionShape3D" parent="MapChangeInteract2"]
|
||||
transform = Transform3D(0.991814, 0.000859021, -0.127689, -0.00103728, 0.999999, -0.0013296, 0.127687, 0.00145116, 0.991813, 4.8648, 2.03135, 0.51722)
|
||||
shape = SubResource("BoxShape3D_epq12")
|
||||
debug_color = Color(0.537255, 0.698039, 0, 1)
|
||||
|
||||
[node name="MapChangeInteract3" parent="." instance=ExtResource("8_epq12")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.63736, 0, 0.933406)
|
||||
|
||||
[node name="ChildOutsideScene" type="CollisionShape3D" parent="MapChangeInteract3"]
|
||||
transform = Transform3D(0.840207, 0, -0.542266, 0, 1, 0, 0.542266, 0, 0.840207, 2.76805, 1.69859, -15.1128)
|
||||
shape = SubResource("BoxShape3D_yhikq")
|
||||
debug_color = Color(0.537255, 0.698039, 0, 1)
|
Reference in New Issue
Block a user