[gd_scene load_steps=21 format=3 uid="uid://bov4ok76woyc"]

[ext_resource type="PackedScene" uid="uid://crydi5cjgfwe5" path="res://levels/ghost_ship/ghost_ship_level.tscn" id="1_aj2m7"]
[ext_resource type="Environment" uid="uid://bkvij3ljl5ox3" path="res://levels/ghost_ship/environment_3.tres" id="1_h081y"]
[ext_resource type="PackedScene" uid="uid://bwe2jdmvinhqd" path="res://src/player/player.tscn" id="2_0ef5p"]
[ext_resource type="PackedScene" uid="uid://d1kacn4b60ucy" path="res://src/ui/post_processing.tscn" id="3_o7mxe"]
[ext_resource type="AudioStream" uid="uid://dx4d8a3mgpws" path="res://assets/sfx/ambient/drone_loop.wav" id="5_ejh2c"]
[ext_resource type="Script" uid="uid://441gcyrbv0jd" path="res://levels/ghost_ship/ambient_drone.gd" id="5_jiowi"]
[ext_resource type="PackedScene" uid="uid://dd21uy6yfgg51" path="res://src/effects/creaker/creaker.tscn" id="7_vdioa"]
[ext_resource type="AudioStream" uid="uid://cqh31d5my7fst" path="res://assets/sfx/ambient/metal_creak1.wav" id="8_ihj8k"]
[ext_resource type="AudioStream" uid="uid://cfvdtl1n42bis" path="res://assets/sfx/ambient/metal_creak2.wav" id="9_d2iql"]
[ext_resource type="AudioStream" uid="uid://p5uendw5mb3x" path="res://assets/sfx/ambient/metal_creak3.wav" id="10_8h40n"]
[ext_resource type="AudioStream" uid="uid://bvtopyke5d17x" path="res://assets/sfx/grunk/groan3.wav" id="10_h081y"]
[ext_resource type="AudioStream" uid="uid://2qg0vqhygdwu" path="res://assets/sfx/ambient/metal_creak4.wav" id="11_it47q"]
[ext_resource type="AudioStream" uid="uid://ot7sr34qya3j" path="res://assets/sfx/ambient/metal_creak5.wav" id="12_h081y"]
[ext_resource type="AudioStream" uid="uid://7w531ufwc8c3" path="res://assets/sfx/ambient/metal_creak6.wav" id="13_law5k"]
[ext_resource type="AudioStream" uid="uid://c60m6qlq5cnp2" path="res://assets/sfx/ambient/metal_creak7.wav" id="14_4mbcm"]
[ext_resource type="AudioStream" uid="uid://cvwc2r2cmnaim" path="res://assets/sfx/ambient/metal_creak8.wav" id="15_r4ldl"]
[ext_resource type="AudioStream" uid="uid://b288km80xeh0" path="res://assets/sfx/grunk/groan1.wav" id="17_law5k"]
[ext_resource type="AudioStream" uid="uid://bujyltdunajj4" path="res://assets/sfx/grunk/groan2.wav" id="18_4mbcm"]

[sub_resource type="BoxShape3D" id="BoxShape3D_o7mxe"]
size = Vector3(6, 4, 15)

[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_d8fas"]
playback_mode = 1
random_pitch = 1.1
streams_count = 11
stream_0/stream = ExtResource("8_ihj8k")
stream_1/stream = ExtResource("9_d2iql")
stream_2/stream = ExtResource("10_8h40n")
stream_3/stream = ExtResource("11_it47q")
stream_4/stream = ExtResource("12_h081y")
stream_5/stream = ExtResource("13_law5k")
stream_6/stream = ExtResource("14_4mbcm")
stream_7/stream = ExtResource("15_r4ldl")
stream_8/stream = ExtResource("17_law5k")
stream_8/weight = 0.2
stream_9/stream = ExtResource("18_4mbcm")
stream_9/weight = 0.2
stream_10/stream = ExtResource("10_h081y")
stream_10/weight = 0.2

[node name="GhostShip" type="Node3D"]

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = ExtResource("1_h081y")

[node name="GhostShipLevel" parent="." instance=ExtResource("1_aj2m7")]

[node name="PostProcessing" parent="." instance=ExtResource("3_o7mxe")]

[node name="PlayerSpawn" type="Marker3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 1, 0)

[node name="Player" parent="PlayerSpawn" instance=ExtResource("2_0ef5p")]

[node name="PlayerShipArea" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
collision_layer = 0
collision_mask = 8

[node name="CollisionShape3D" type="CollisionShape3D" parent="PlayerShipArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
shape = SubResource("BoxShape3D_o7mxe")

[node name="AmbientDrone" type="AudioStreamPlayer" parent="."]
unique_name_in_owner = true
stream = ExtResource("5_ejh2c")
volume_db = -80.0
autoplay = true
bus = &"Music"
script = ExtResource("5_jiowi")
base_volume = -18.0

[node name="AmbientSFX" type="Node3D" parent="."]

[node name="Creaker" parent="AmbientSFX" instance=ExtResource("7_vdioa")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -21, 1, -38)
stream = SubResource("AudioStreamRandomizer_d8fas")
unit_size = 2.0
interval_mean = 120.0
interval_st_dev = 30.0

[node name="Creaker2" parent="AmbientSFX" instance=ExtResource("7_vdioa")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 1, -54)
stream = SubResource("AudioStreamRandomizer_d8fas")
unit_size = 2.0
interval_mean = 120.0
interval_st_dev = 30.0

[node name="Creaker3" parent="AmbientSFX" instance=ExtResource("7_vdioa")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -27, 1, -54)
stream = SubResource("AudioStreamRandomizer_d8fas")
unit_size = 2.0
interval_mean = 120.0
interval_st_dev = 30.0

[node name="Creaker4" parent="AmbientSFX" instance=ExtResource("7_vdioa")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, -77)
stream = SubResource("AudioStreamRandomizer_d8fas")
unit_size = 2.0
interval_mean = 120.0
interval_st_dev = 30.0

[node name="Creaker5" parent="AmbientSFX" instance=ExtResource("7_vdioa")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 2, -38)
stream = SubResource("AudioStreamRandomizer_d8fas")
unit_size = 2.0
interval_mean = 120.0
interval_st_dev = 30.0

[connection signal="body_entered" from="PlayerShipArea" to="AmbientDrone" method="_on_player_enters_ship"]
[connection signal="body_exited" from="PlayerShipArea" to="AmbientDrone" method="_on_player_exits_ship"]
