diff --git a/audio/Ambience.wav b/audio/Ambience.wav new file mode 100644 index 0000000..ac226cd Binary files /dev/null and b/audio/Ambience.wav differ diff --git a/audio/Ambience.wav.import b/audio/Ambience.wav.import new file mode 100644 index 0000000..0771179 --- /dev/null +++ b/audio/Ambience.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://b3d6rntbosvc6" +path="res://.godot/imported/Ambience.wav-83d8d76e0560b8a9bc9246c2fe2d879f.sample" + +[deps] + +source_file="res://audio/Ambience.wav" +dest_files=["res://.godot/imported/Ambience.wav-83d8d76e0560b8a9bc9246c2fe2d879f.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/audio/Robot - Deep Breath.wav b/audio/Robot - Deep Breath.wav new file mode 100644 index 0000000..784a394 Binary files /dev/null and b/audio/Robot - Deep Breath.wav differ diff --git a/audio/Robot - Deep Breath.wav.import b/audio/Robot - Deep Breath.wav.import new file mode 100644 index 0000000..01b5af7 --- /dev/null +++ b/audio/Robot - Deep Breath.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bj5adk0tb5ymj" +path="res://.godot/imported/Robot - Deep Breath.wav-536619348a41a6187dd536818ce629b6.sample" + +[deps] + +source_file="res://audio/Robot - Deep Breath.wav" +dest_files=["res://.godot/imported/Robot - Deep Breath.wav-536619348a41a6187dd536818ce629b6.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/audio/Robot - I Understand.wav b/audio/Robot - I Understand.wav new file mode 100644 index 0000000..b6d696b Binary files /dev/null and b/audio/Robot - I Understand.wav differ diff --git a/audio/Robot - I Understand.wav.import b/audio/Robot - I Understand.wav.import new file mode 100644 index 0000000..42c0460 --- /dev/null +++ b/audio/Robot - I Understand.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dln0g1bnjh1of" +path="res://.godot/imported/Robot - I Understand.wav-d9b69df7b54d6889fc0ebcbf12e06bdb.sample" + +[deps] + +source_file="res://audio/Robot - I Understand.wav" +dest_files=["res://.godot/imported/Robot - I Understand.wav-d9b69df7b54d6889fc0ebcbf12e06bdb.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/audio/Robot - Sounds Difficult.wav b/audio/Robot - Sounds Difficult.wav new file mode 100644 index 0000000..c290f07 Binary files /dev/null and b/audio/Robot - Sounds Difficult.wav differ diff --git a/audio/Robot - Sounds Difficult.wav.import b/audio/Robot - Sounds Difficult.wav.import new file mode 100644 index 0000000..54725f5 --- /dev/null +++ b/audio/Robot - Sounds Difficult.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://ddaxnm2wg2ubd" +path="res://.godot/imported/Robot - Sounds Difficult.wav-4d7d81a42c8cfefe6a41b9255a368421.sample" + +[deps] + +source_file="res://audio/Robot - Sounds Difficult.wav" +dest_files=["res://.godot/imported/Robot - Sounds Difficult.wav-4d7d81a42c8cfefe6a41b9255a368421.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/audio/Robot - Thank You.wav b/audio/Robot - Thank You.wav new file mode 100644 index 0000000..f01a8c5 Binary files /dev/null and b/audio/Robot - Thank You.wav differ diff --git a/audio/Robot - Thank You.wav.import b/audio/Robot - Thank You.wav.import new file mode 100644 index 0000000..cecb45f --- /dev/null +++ b/audio/Robot - Thank You.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bwovhu6jfk0vt" +path="res://.godot/imported/Robot - Thank You.wav-aa3a9c36047e555f44dcbbf202b604d2.sample" + +[deps] + +source_file="res://audio/Robot - Thank You.wav" +dest_files=["res://.godot/imported/Robot - Thank You.wav-aa3a9c36047e555f44dcbbf202b604d2.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/scenes/elevator.gd b/scenes/elevator.gd index 059462b..b76743d 100644 --- a/scenes/elevator.gd +++ b/scenes/elevator.gd @@ -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() diff --git a/scenes/game.tscn b/scenes/game.tscn index 0070847..18faf79 100644 --- a/scenes/game.tscn +++ b/scenes/game.tscn @@ -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")]