Add sounds
This commit is contained in:
parent
807ad50046
commit
2e23faf112
12 changed files with 146 additions and 0 deletions
|
|
@ -38,6 +38,10 @@ func _set_door_collision(enabled: bool):
|
|||
$ElevatorDoorRight/CollisionShape3D.disabled = not enabled
|
||||
$ElevatorDoorLeft/CollisionShape3D.disabled = not enabled
|
||||
|
||||
func get_door_close_progress() -> float:
|
||||
var cur: float = $ElevatorDoorRight.position.x
|
||||
return clamp((DOOR_OPEN_X - cur) / (DOOR_OPEN_X - DOOR_CLOSED_X), 0.0, 1.0)
|
||||
|
||||
func _tween_doors(target_x: float, duration: float):
|
||||
if _tween:
|
||||
_tween.kill()
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@
|
|||
[ext_resource type="AudioStream" uid="uid://bavo8f76jr7i6" path="res://audio/ElevatorOpen1.wav" id="5_u5sy4"]
|
||||
[ext_resource type="AudioStream" uid="uid://dgqb1rovgwuan" path="res://audio/ElevatorClose1.wav" id="6_gee14"]
|
||||
[ext_resource type="AudioStream" uid="uid://c2iaspcnilk5" path="res://audio/556700__nachtmahrtv__elevator-bell.wav" id="7_bell"]
|
||||
[ext_resource type="AudioStream" path="res://audio/Robot - Deep Breath.wav" id="8_breath"]
|
||||
[ext_resource type="AudioStream" path="res://audio/Robot - Sounds Difficult.wav" id="9_diff"]
|
||||
[ext_resource type="AudioStream" path="res://audio/Robot - I Understand.wav" id="10_under"]
|
||||
[ext_resource type="AudioStream" path="res://audio/Robot - Thank You.wav" id="11_thx"]
|
||||
[ext_resource type="AudioStream" path="res://audio/Ambience.wav" id="12_amb"]
|
||||
[ext_resource type="PackedScene" uid="uid://bb0o3ov6u308v" path="res://scenes/component_spawn.tscn" id="9_0tnpc"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/end_screen.tscn" id="10_endsc"]
|
||||
[ext_resource type="PackedScene" uid="uid://sgakdvtoblmd" path="res://scenes/title_screen.tscn" id="11_title"]
|
||||
|
|
@ -41,6 +46,23 @@ stream = ExtResource("7_bell")
|
|||
|
||||
[node name="SfxChase" type="AudioStreamPlayer3D" parent="CanvasPanel/ElevatorPanel" unique_id=812445001]
|
||||
|
||||
[node name="SfxRobotDeepBreath" type="AudioStreamPlayer3D" parent="CanvasPanel/ElevatorPanel" unique_id=1100000001]
|
||||
stream = ExtResource("8_breath")
|
||||
|
||||
[node name="SfxRobotSoundsDifficult" type="AudioStreamPlayer3D" parent="CanvasPanel/ElevatorPanel" unique_id=1100000002]
|
||||
stream = ExtResource("9_diff")
|
||||
|
||||
[node name="SfxRobotIUnderstand" type="AudioStreamPlayer3D" parent="CanvasPanel/ElevatorPanel" unique_id=1100000003]
|
||||
stream = ExtResource("10_under")
|
||||
|
||||
[node name="SfxRobotThankYou" type="AudioStreamPlayer3D" parent="CanvasPanel/ElevatorPanel" unique_id=1100000004]
|
||||
stream = ExtResource("11_thx")
|
||||
|
||||
[node name="Ambience" type="AudioStreamPlayer3D" parent="." unique_id=1100000005]
|
||||
stream = ExtResource("12_amb")
|
||||
autoplay = true
|
||||
volume_db = -18.0
|
||||
|
||||
[node name="ComponentSpawn" parent="." unique_id=649225939 instance=ExtResource("9_0tnpc")]
|
||||
|
||||
[node name="EndScreen" parent="." unique_id=993175156 instance=ExtResource("10_endsc")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue