Make player, enemy, and items spawn at consistent heights

This commit is contained in:
2024-09-25 21:33:11 -07:00
parent 7f1f1a8a14
commit 41c24c5ab3
31 changed files with 2146 additions and 802 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=85 format=4 uid="uid://b7111krf365x0"]
[gd_scene load_steps=86 format=4 uid="uid://b7111krf365x0"]
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_jccmw"]
[ext_resource type="Script" path="res://src/map/dungeon/code/DungeonRoom.cs" id="2_5p5p8"]
@@ -867,6 +867,10 @@ albedo_texture = ExtResource("14_vh3wx")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xw1ea"]
albedo_texture = ExtResource("14_vh3wx")
[sub_resource type="NavigationMesh" id="NavigationMesh_irfm3"]
vertices = PackedVector3Array(-16.9964, -1.50834, -15.2482, -16.9964, -1.50834, 15.7518, 18.0036, -1.50834, 15.7518, 18.0036, -1.50834, -15.2482)
polygons = [PackedInt32Array(3, 2, 0), PackedInt32Array(0, 2, 1)]
[sub_resource type="BoxShape3D" id="BoxShape3D_suh2k"]
size = Vector3(36, 8, 36)
@@ -882,11 +886,10 @@ min_count = 1
max_count = 1
[node name="InnerBalcony" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.420509, -0.231827, -0.327061)
script = ExtResource("2_5p5p8")
[node name="INNER_BALCONY_ROOM_VER2" type="Node3D" parent="InnerBalcony"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -15.0192, -69.2062, -78.9245)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -15.5355, -69.5131, -79.2483)
[node name="COLISION_001" type="Node3D" parent="InnerBalcony/INNER_BALCONY_ROOM_VER2"]
transform = Transform3D(0.249554, 0, 0, 0, -10.8865, 0, 0, 0, 0.25, 17.1674, 69.9, 77.2533)
@@ -1126,14 +1129,14 @@ use_collision = true
size = Vector3(2, 20, 12)
[node name="CSGBox3D" type="CSGBox3D" parent="InnerBalcony"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.377571, 0.153494, 0.288738)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.138685, -0.153367, -0.035084)
visible = false
operation = 1
flip_faces = true
size = Vector3(36, 20, 32)
[node name="CSGBox2" type="CSGBox3D" parent="InnerBalcony"]
transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0.437618, 0.219975, -15.7059)
transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, -0.0786376, -0.0984231, -16.0297)
use_collision = true
size = Vector3(4, 4, 0.5)
material = SubResource("StandardMaterial3D_fgovc")
@@ -1146,7 +1149,7 @@ size = Vector3(4, 4, 2)
material = SubResource("StandardMaterial3D_xw1ea")
[node name="CSGBox3" type="CSGBox3D" parent="InnerBalcony"]
transform = Transform3D(1.91069e-15, 4.37114e-08, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, -4.37114e-08, 18.7051, 0.219975, -1.82483)
transform = Transform3D(1.91069e-15, 4.37114e-08, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, -4.37114e-08, 18.1888, -0.0868863, -2.14865)
use_collision = true
size = Vector3(4, 4, 0.5)
material = SubResource("StandardMaterial3D_fgovc")
@@ -1159,7 +1162,7 @@ size = Vector3(4, 4, 2)
material = SubResource("StandardMaterial3D_xw1ea")
[node name="CSGBox4" type="CSGBox3D" parent="InnerBalcony"]
transform = Transform3D(1.91069e-15, 4.37114e-08, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, -4.37114e-08, -17.7429, 0.219975, -1.82483)
transform = Transform3D(1.91069e-15, 4.37114e-08, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, -4.37114e-08, -18.2592, -0.0868863, -2.14865)
use_collision = true
size = Vector3(4, 4, 0.5)
material = SubResource("StandardMaterial3D_fgovc")
@@ -1173,16 +1176,18 @@ material = SubResource("StandardMaterial3D_xw1ea")
[node name="PlayerSpawn" type="Marker3D" parent="InnerBalcony"]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.28634, -1.14026, -8.99855)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.229916, -1.44712, -9.32237)
[node name="ItemSpawnPoints" type="Node3D" parent="InnerBalcony"]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.516256, -0.306861, -0.323822)
[node name="ItemSpawnPoint" type="Marker3D" parent="InnerBalcony/ItemSpawnPoints"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.751074, -0.889025, 0.745985)
[node name="EnemySpawnPoints" type="Node3D" parent="InnerBalcony"]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.516256, -0.306861, -0.323822)
[node name="EnemySpawn1" type="Marker3D" parent="InnerBalcony/EnemySpawnPoints"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.346, -0.5, -3.546)
@@ -1195,18 +1200,18 @@ unique_name_in_owner = true
[node name="TeleportSpawn" type="Marker3D" parent="InnerBalcony"]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.35346, -1.15477, -2.52356)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.8372, -1.46163, -2.84738)
[node name="RemoveUnusedDoors" type="Node" parent="."]
script = ExtResource("17_atu1n")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.866023, -0.433016, 0.250001, 0, 0.499998, 0.866027, -0.500003, 0.749999, -0.43301, 0, 0, 0)
transform = Transform3D(-0.866024, -0.433016, 0.250001, 0, 0.499998, 0.866026, -0.500003, 0.749999, -0.43301, -0.516256, -0.306861, -0.323822)
light_energy = 0.0
shadow_enabled = true
[node name="OmniLight" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.07531, -0.384938, 2.13334)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.55905, -0.691799, 1.80952)
light_color = Color(0, 0.227451, 1, 1)
light_energy = 0.662
light_indirect_energy = 1.582
@@ -1214,7 +1219,7 @@ light_size = 0.281
omni_range = 3.235
[node name="OmniLight2" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.29897, -0.444593, 3.76422)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.78271, -0.751454, 3.4404)
light_color = Color(0, 0.227451, 1, 1)
light_energy = 0.662
light_indirect_energy = 1.582
@@ -1222,7 +1227,7 @@ light_size = 0.281
omni_range = 3.235
[node name="OmniLight3" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1078, -0.414419, 4.60354)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.591544, -0.72128, 4.27972)
light_color = Color(0, 0.227451, 1, 1)
light_energy = 0.662
light_indirect_energy = 1.582
@@ -1230,7 +1235,7 @@ light_size = 0.281
omni_range = 3.235
[node name="OmniLight4" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.951148, -0.43593, 4.64544)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.4674, -0.742791, 4.32162)
light_color = Color(0, 0.227451, 1, 1)
light_energy = 0.662
light_indirect_energy = 1.582
@@ -1238,7 +1243,7 @@ light_size = 0.281
omni_range = 3.235
[node name="OmniLight5" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.1715, -0.360244, 3.75154)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.68776, -0.667105, 3.42772)
light_color = Color(0, 0.227451, 1, 1)
light_energy = 0.662
light_indirect_energy = 1.582
@@ -1246,26 +1251,36 @@ light_size = 0.281
omni_range = 3.235
[node name="OmniLight6" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.83607, -0.382083, 2.04846)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.35233, -0.688944, 1.72464)
light_color = Color(0, 0.227451, 1, 1)
light_energy = 0.662
light_indirect_energy = 1.582
light_size = 0.281
omni_range = 3.235
[node name="Minimap Manager" type="Area3D" parent="."]
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.516256, -0.306861, -0.323822)
navigation_mesh = SubResource("NavigationMesh_irfm3")
[node name="Minimap Manager" type="Area3D" parent="NavigationRegion3D"]
collision_layer = 512
collision_mask = 512
script = ExtResource("19_gi8bh")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Minimap Manager"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/Minimap Manager"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.94617, 0)
shape = SubResource("BoxShape3D_suh2k")
[node name="Minimap" type="MeshInstance3D" parent="Minimap Manager"]
[node name="Minimap" type="MeshInstance3D" parent="NavigationRegion3D/Minimap Manager"]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.1755, 0)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.503605, -2.25834, 0.293772)
visible = false
layers = 2
mesh = SubResource("PlaneMesh_fhks4")
skeleton = NodePath("../..")
skeleton = NodePath("../../..")
[node name="Minimap2" type="MeshInstance3D" parent="NavigationRegion3D/Minimap Manager"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.545578, -1.75954, 0.251803)
layers = 4
mesh = SubResource("PlaneMesh_fhks4")
skeleton = NodePath("../../..")