Add collisions to A2 corridors

Start implementation of fading ambient audio in/out on level load
This commit is contained in:
2026-02-05 14:17:45 -08:00
parent 147f04d2ff
commit 36b851254e
58 changed files with 1523 additions and 3666 deletions

View File

@@ -1,8 +1,9 @@
[gd_scene load_steps=18 format=3 uid="uid://dl6h1djc27ddl"]
[gd_scene load_steps=19 format=3 uid="uid://dl6h1djc27ddl"]
[ext_resource type="Script" uid="uid://c1nhqlem1ew3m" path="res://src/map/dungeon/code/Altar.cs" id="1_5jip8"]
[ext_resource type="Resource" uid="uid://bqnfw6r4085yv" path="res://src/dialog/Altar.dialogue" id="2_7xfp0"]
[ext_resource type="PackedScene" uid="uid://co0fmuno2pjc7" path="res://src/map/dungeon/models/Special Floors & Rooms/Altar/02_ALTAR_FLOOR_ZER0_VER.1.glb" id="2_xpi6o"]
[ext_resource type="Script" uid="uid://cstc8tdapyrst" path="res://src/audio/AmbientSFXPlayer.cs" id="5_7xfp0"]
[ext_resource type="Shader" uid="uid://c4a68uhm5o2h4" path="res://src/map/map shaders/Altar Sky Environment.gdshader" id="27_lb4gb"]
[ext_resource type="AudioStream" uid="uid://c4ud110da8efp" path="res://src/audio/AMB/amb_wind_loop_altar.wav" id="28_je2oh"]
@@ -29,6 +30,9 @@ size = Vector3(369.423, 20, 47.9875)
[sub_resource type="BoxShape3D" id="BoxShape3D_db2o3"]
size = Vector3(2.97754, 2.34912, 3.79205)
[sub_resource type="BoxShape3D" id="BoxShape3D_tp2pi"]
size = Vector3(4.52301, 7.56061, 15.4608)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_6iwuh"]
shader = ExtResource("27_lb4gb")
shader_parameter/day_top_color = Color(0.110511, 0.211694, 0.207729, 1)
@@ -92,9 +96,6 @@ auto_exposure_enabled = true
dof_blur_far_distance = 29.84
dof_blur_amount = 0.06
[sub_resource type="BoxShape3D" id="BoxShape3D_tp2pi"]
size = Vector3(4.52301, 7.56061, 15.4608)
[node name="Floor0" type="Node3D"]
script = ExtResource("1_5jip8")
Dialogue = ExtResource("2_7xfp0")
@@ -159,10 +160,6 @@ transform = Transform3D(1.8, 0, 0, 0, 1.8, 0, 0, 0, 1.8, 0, 3.88968, 0)
unique_name_in_owner = true
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 39.3951, -2.89376, -1.035)
[node name="ExitSpawnPoint" type="Marker3D" parent="Spawn Points"]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -11.4308, -1.94189, -0.268161)
[node name="Room" type="Node3D" parent="."]
transform = Transform3D(1.8, 0, 0, 0, 1.8, 0, 0, 0, 1.8, 0, 3.88968, 0)
@@ -185,12 +182,14 @@ collision_mask = 256
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.1171, -2.1779, -0.0887146)
shape = SubResource("BoxShape3D_db2o3")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
process_mode = 3
stream = ExtResource("28_je2oh")
volume_db = -8.0
autoplay = true
bus = &"AMBIENT"
[node name="NoExitArea" type="Area3D" parent="Room"]
unique_name_in_owner = true
collision_layer = 0
collision_mask = 64
[node name="CollisionShape3D" type="CollisionShape3D" parent="Room/NoExitArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 72.5243, -2.06593, -2.02953)
shape = SubResource("BoxShape3D_tp2pi")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.80799, 0.209228, 0.550796, 1.41155e-07, -0.934826, 0.355107, 0.589197, -0.286923, -0.755329, 0, 3.88968, -89.3095)
@@ -203,12 +202,12 @@ shadow_blur = 2.832
environment = SubResource("Environment_c86uk")
camera_attributes = SubResource("CameraAttributesPractical_ojbcg")
[node name="NoExitArea" type="Area3D" parent="."]
[node name="DimmableAudio" type="Node3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1.8, 0, 0, 0, 1.8, 0, 0, 0, 1.8, 0, 3.88968, 0)
collision_layer = 0
collision_mask = 64
[node name="CollisionShape3D" type="CollisionShape3D" parent="NoExitArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 72.5243, -2.06593, -2.02953)
shape = SubResource("BoxShape3D_tp2pi")
[node name="AmbientWind" type="AudioStreamPlayer" parent="DimmableAudio"]
process_mode = 3
stream = ExtResource("28_je2oh")
volume_db = -8.0
bus = &"AMBIENT"
script = ExtResource("5_7xfp0")