From 60ab37557225918f40b0ea9b5274197fee051923 Mon Sep 17 00:00:00 2001 From: MaddoScientisto Date: Sat, 1 Mar 2025 23:46:25 +0100 Subject: [PATCH] Sound effects --- .gitattributes | 2 ++ Resources/Credits.tres | 34 +++++++++++++++++-- SFX/270641__phantastonia__alarm2.wav | 3 ++ SFX/270641__phantastonia__alarm2.wav.import | 24 +++++++++++++ ...robotsoundfactory__click_electronic_10.wav | 3 ++ ...undfactory__click_electronic_10.wav.import | 24 +++++++++++++ ...robotsoundfactory__click_electronic_14.wav | 3 ++ ...undfactory__click_electronic_14.wav.import | 24 +++++++++++++ SFX/317749__jalastram__sfx_explosion_02.wav | 3 ++ ...49__jalastram__sfx_explosion_02.wav.import | 24 +++++++++++++ ...lstorm__retro-video-game-sfx-explode-3.wav | 3 ++ ..._retro-video-game-sfx-explode-3.wav.import | 24 +++++++++++++ ...kboll__sony_dat_tcd-d10_pro_door_close.wav | 3 ++ ...sony_dat_tcd-d10_pro_door_close.wav.import | 24 +++++++++++++ ...rkboll__sony_dat_tcd-d10_pro_door_open.wav | 3 ++ ..._sony_dat_tcd-d10_pro_door_open.wav.import | 24 +++++++++++++ SFX/520546__aj_heels__supernovasmall.wav | 3 ++ ...20546__aj_heels__supernovasmall.wav.import | 24 +++++++++++++ ..._crash_358__sci-fi-ui-button-sound-005.wav | 3 ++ ...358__sci-fi-ui-button-sound-005.wav.import | 24 +++++++++++++ SFX/Artninja_Forcefield_Disable.wav | 3 ++ SFX/Artninja_Forcefield_Disable.wav.import | 24 +++++++++++++ SFX/Artninja_Forcefield_Enable.wav | 3 ++ SFX/Artninja_Forcefield_Enable.wav.import | 24 +++++++++++++ SFX/teleporter_end.wav | 3 ++ SFX/teleporter_end.wav.import | 24 +++++++++++++ SFX/teleporter_start.wav | 3 ++ SFX/teleporter_start.wav.import | 24 +++++++++++++ Scenes/Actors/ForceField_Horizontal.tscn | 13 ++++++- Scenes/Actors/teleporter.tscn | 14 ++++++-- Scenes/Door_Horizontal.tscn | 13 ++++++- Scenes/Door_Vertical.tscn | 13 ++++++- Scenes/Explosion.tscn | 2 +- Scenes/Interactable/Control_Pad.tscn | 6 +++- Scenes/Weapons/Bullets/explosion.tscn | 7 +++- Scenes/test.tscn | 7 ++-- Scripts/Activables/ForceField.cs | 3 +- Scripts/Activables/Teleporter.cs | 20 ++++++++++- Scripts/AlarmManager.cs | 16 +++++++++ Scripts/Door.cs | 8 +++++ Scripts/Interactables/Switch.cs | 10 ++++++ 41 files changed, 504 insertions(+), 15 deletions(-) create mode 100644 SFX/270641__phantastonia__alarm2.wav create mode 100644 SFX/270641__phantastonia__alarm2.wav.import create mode 100644 SFX/288960__littlerobotsoundfactory__click_electronic_10.wav create mode 100644 SFX/288960__littlerobotsoundfactory__click_electronic_10.wav.import create mode 100644 SFX/288963__littlerobotsoundfactory__click_electronic_14.wav create mode 100644 SFX/288963__littlerobotsoundfactory__click_electronic_14.wav.import create mode 100644 SFX/317749__jalastram__sfx_explosion_02.wav create mode 100644 SFX/317749__jalastram__sfx_explosion_02.wav.import create mode 100644 SFX/404752__owlstorm__retro-video-game-sfx-explode-3.wav create mode 100644 SFX/404752__owlstorm__retro-video-game-sfx-explode-3.wav.import create mode 100644 SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav create mode 100644 SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav.import create mode 100644 SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav create mode 100644 SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav.import create mode 100644 SFX/520546__aj_heels__supernovasmall.wav create mode 100644 SFX/520546__aj_heels__supernovasmall.wav.import create mode 100644 SFX/615532__crash_358__sci-fi-ui-button-sound-005.wav create mode 100644 SFX/615532__crash_358__sci-fi-ui-button-sound-005.wav.import create mode 100644 SFX/Artninja_Forcefield_Disable.wav create mode 100644 SFX/Artninja_Forcefield_Disable.wav.import create mode 100644 SFX/Artninja_Forcefield_Enable.wav create mode 100644 SFX/Artninja_Forcefield_Enable.wav.import create mode 100644 SFX/teleporter_end.wav create mode 100644 SFX/teleporter_end.wav.import create mode 100644 SFX/teleporter_start.wav create mode 100644 SFX/teleporter_start.wav.import diff --git a/.gitattributes b/.gitattributes index c3305bad..aa98b95f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,4 +5,6 @@ *.png filter=lfs diff=lfs merge=lfs -text *.wav filter=lfs diff=lfs merge=lfs -text *.mp3 filter=lfs diff=lfs merge=lfs -text +*.flac filter=lfs diff=lfs merge=lfs -text +*.ogg filter=lfs diff=lfs merge=lfs -text *.aseprite filter=lfs diff=lfs merge=lfs -text diff --git a/Resources/Credits.tres b/Resources/Credits.tres index c1a5c26c..0e7727ba 100644 --- a/Resources/Credits.tres +++ b/Resources/Credits.tres @@ -1,4 +1,4 @@ -[gd_resource type="Resource" script_class="CreditsCollection" load_steps=5 format=3 uid="uid://cojsc1rtf41i1"] +[gd_resource type="Resource" script_class="CreditsCollection" load_steps=10 format=3 uid="uid://cojsc1rtf41i1"] [ext_resource type="Script" uid="uid://buq8eurx510ps" path="res://Scripts/Resources/CreditsCollection.cs" id="1_0bwsf"] [ext_resource type="Script" uid="uid://bc4f4ggvk3ktf" path="res://Scripts/Resources/CreditsEntry.cs" id="1_aaqha"] @@ -15,7 +15,37 @@ Name = "alphatrooper18" Contribution = "Sound Effects" metadata/_custom_type_script = "uid://bc4f4ggvk3ktf" +[sub_resource type="Resource" id="Resource_aaqha"] +script = ExtResource("1_aaqha") +Name = "jalastram" +Contribution = "Explosion SFX" +metadata/_custom_type_script = "uid://bc4f4ggvk3ktf" + +[sub_resource type="Resource" id="Resource_gr2tg"] +script = ExtResource("1_aaqha") +Name = "LittleRobotSoundFactory" +Contribution = "UI Sounds" +metadata/_custom_type_script = "uid://bc4f4ggvk3ktf" + +[sub_resource type="Resource" id="Resource_b8hlh"] +script = ExtResource("1_aaqha") +Name = "Artninja" +Contribution = "Sounds" +metadata/_custom_type_script = "uid://bc4f4ggvk3ktf" + +[sub_resource type="Resource" id="Resource_gbaov"] +script = ExtResource("1_aaqha") +Name = "aj_heels" +Contribution = "Sounds" +metadata/_custom_type_script = "uid://bc4f4ggvk3ktf" + +[sub_resource type="Resource" id="Resource_jkmrk"] +script = ExtResource("1_aaqha") +Name = "guillermochicasonido" +Contribution = "Teleporter Sound" +metadata/_custom_type_script = "uid://bc4f4ggvk3ktf" + [resource] script = ExtResource("1_0bwsf") -Credits = Array[ExtResource("1_aaqha")]([SubResource("Resource_vda0h"), SubResource("Resource_j7pkh")]) +Credits = Array[ExtResource("1_aaqha")]([SubResource("Resource_vda0h"), SubResource("Resource_j7pkh"), SubResource("Resource_aaqha"), SubResource("Resource_gr2tg"), SubResource("Resource_b8hlh"), SubResource("Resource_gbaov"), SubResource("Resource_jkmrk")]) metadata/_custom_type_script = "uid://buq8eurx510ps" diff --git a/SFX/270641__phantastonia__alarm2.wav b/SFX/270641__phantastonia__alarm2.wav new file mode 100644 index 00000000..57a8c257 --- /dev/null +++ b/SFX/270641__phantastonia__alarm2.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a2a8978eba35917d26722737f4d47054567d2647847cae1e26b959f1b00dc5e4 +size 647394 diff --git a/SFX/270641__phantastonia__alarm2.wav.import b/SFX/270641__phantastonia__alarm2.wav.import new file mode 100644 index 00000000..13c9ce55 --- /dev/null +++ b/SFX/270641__phantastonia__alarm2.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://blohh20jktoyo" +path="res://.godot/imported/270641__phantastonia__alarm2.wav-7e5dfeec67f2ceec352925780011b0c5.sample" + +[deps] + +source_file="res://SFX/270641__phantastonia__alarm2.wav" +dest_files=["res://.godot/imported/270641__phantastonia__alarm2.wav-7e5dfeec67f2ceec352925780011b0c5.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=2 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/SFX/288960__littlerobotsoundfactory__click_electronic_10.wav b/SFX/288960__littlerobotsoundfactory__click_electronic_10.wav new file mode 100644 index 00000000..9a9fbf7e --- /dev/null +++ b/SFX/288960__littlerobotsoundfactory__click_electronic_10.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:efc47b38a50c8e4ddfc82d8ced20c0c3d4b13c68f48a954612631d870dfa04f6 +size 36726 diff --git a/SFX/288960__littlerobotsoundfactory__click_electronic_10.wav.import b/SFX/288960__littlerobotsoundfactory__click_electronic_10.wav.import new file mode 100644 index 00000000..73cb131d --- /dev/null +++ b/SFX/288960__littlerobotsoundfactory__click_electronic_10.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bxadb7f8hh7cq" +path="res://.godot/imported/288960__littlerobotsoundfactory__click_electronic_10.wav-bc1a6a8f1fb97b7e2244dcca7e5e9ce8.sample" + +[deps] + +source_file="res://SFX/288960__littlerobotsoundfactory__click_electronic_10.wav" +dest_files=["res://.godot/imported/288960__littlerobotsoundfactory__click_electronic_10.wav-bc1a6a8f1fb97b7e2244dcca7e5e9ce8.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/SFX/288963__littlerobotsoundfactory__click_electronic_14.wav b/SFX/288963__littlerobotsoundfactory__click_electronic_14.wav new file mode 100644 index 00000000..755d9907 --- /dev/null +++ b/SFX/288963__littlerobotsoundfactory__click_electronic_14.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:768934a39293f8d541a9018fea267b0bc41986398ab62b8cd6a22f94a0de56fb +size 58478 diff --git a/SFX/288963__littlerobotsoundfactory__click_electronic_14.wav.import b/SFX/288963__littlerobotsoundfactory__click_electronic_14.wav.import new file mode 100644 index 00000000..7f2728dc --- /dev/null +++ b/SFX/288963__littlerobotsoundfactory__click_electronic_14.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bjvklk7qmlivd" +path="res://.godot/imported/288963__littlerobotsoundfactory__click_electronic_14.wav-bf5a74022d2147ef0eade72148d29655.sample" + +[deps] + +source_file="res://SFX/288963__littlerobotsoundfactory__click_electronic_14.wav" +dest_files=["res://.godot/imported/288963__littlerobotsoundfactory__click_electronic_14.wav-bf5a74022d2147ef0eade72148d29655.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/SFX/317749__jalastram__sfx_explosion_02.wav b/SFX/317749__jalastram__sfx_explosion_02.wav new file mode 100644 index 00000000..c6d83493 --- /dev/null +++ b/SFX/317749__jalastram__sfx_explosion_02.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14ad07809be3d5cb695b4163c199f6348bab83ec7d8377016455453e6b171dd3 +size 79488 diff --git a/SFX/317749__jalastram__sfx_explosion_02.wav.import b/SFX/317749__jalastram__sfx_explosion_02.wav.import new file mode 100644 index 00000000..2baec3c1 --- /dev/null +++ b/SFX/317749__jalastram__sfx_explosion_02.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://sxai4dj8pax5" +path="res://.godot/imported/317749__jalastram__sfx_explosion_02.wav-6c60f38748ed65acd1389542cbe9145e.sample" + +[deps] + +source_file="res://SFX/317749__jalastram__sfx_explosion_02.wav" +dest_files=["res://.godot/imported/317749__jalastram__sfx_explosion_02.wav-6c60f38748ed65acd1389542cbe9145e.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/SFX/404752__owlstorm__retro-video-game-sfx-explode-3.wav b/SFX/404752__owlstorm__retro-video-game-sfx-explode-3.wav new file mode 100644 index 00000000..bf58ff81 --- /dev/null +++ b/SFX/404752__owlstorm__retro-video-game-sfx-explode-3.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46a80fc3a92701f3163073ba0b716bc1326e10e355937ebaee54bb9d557655d3 +size 127372 diff --git a/SFX/404752__owlstorm__retro-video-game-sfx-explode-3.wav.import b/SFX/404752__owlstorm__retro-video-game-sfx-explode-3.wav.import new file mode 100644 index 00000000..e5ec7e6f --- /dev/null +++ b/SFX/404752__owlstorm__retro-video-game-sfx-explode-3.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://ds84e0m5l4i5d" +path="res://.godot/imported/404752__owlstorm__retro-video-game-sfx-explode-3.wav-f2368af2ca17d93febfbad8077616ffb.sample" + +[deps] + +source_file="res://SFX/404752__owlstorm__retro-video-game-sfx-explode-3.wav" +dest_files=["res://.godot/imported/404752__owlstorm__retro-video-game-sfx-explode-3.wav-f2368af2ca17d93febfbad8077616ffb.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/SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav b/SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav new file mode 100644 index 00000000..9fe4ec61 --- /dev/null +++ b/SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:775ca6a33ae6dad88bda9f4514a2a537d54fca1d25e3f333a44854bc4c7d3c50 +size 110638 diff --git a/SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav.import b/SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav.import new file mode 100644 index 00000000..2b60410f --- /dev/null +++ b/SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dmsnvo8kdjyt8" +path="res://.godot/imported/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav-52a6907c841cbc87a669aed9f586dc2e.sample" + +[deps] + +source_file="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav" +dest_files=["res://.godot/imported/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav-52a6907c841cbc87a669aed9f586dc2e.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/SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav b/SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav new file mode 100644 index 00000000..ca6a271b --- /dev/null +++ b/SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ea7f54ff4103906cf3ccb9f04e56f3f3dedb792e70baf6c554a6ae9ec17d6bf +size 331860 diff --git a/SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav.import b/SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav.import new file mode 100644 index 00000000..fdd2ccb7 --- /dev/null +++ b/SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://p5n7ijw2qvxy" +path="res://.godot/imported/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav-ef2eb5c390d2dbbaa464a5d9f55aff34.sample" + +[deps] + +source_file="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav" +dest_files=["res://.godot/imported/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav-ef2eb5c390d2dbbaa464a5d9f55aff34.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/SFX/520546__aj_heels__supernovasmall.wav b/SFX/520546__aj_heels__supernovasmall.wav new file mode 100644 index 00000000..d2a7d79f --- /dev/null +++ b/SFX/520546__aj_heels__supernovasmall.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be6914119daf0b2e95df12d2e93d982b93befe931a6574f4aceb393b29680f90 +size 3385472 diff --git a/SFX/520546__aj_heels__supernovasmall.wav.import b/SFX/520546__aj_heels__supernovasmall.wav.import new file mode 100644 index 00000000..18a32bf6 --- /dev/null +++ b/SFX/520546__aj_heels__supernovasmall.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://nfb6ofmccu2e" +path="res://.godot/imported/520546__aj_heels__supernovasmall.wav-e707793dafe22b56eef352dcd3710118.sample" + +[deps] + +source_file="res://SFX/520546__aj_heels__supernovasmall.wav" +dest_files=["res://.godot/imported/520546__aj_heels__supernovasmall.wav-e707793dafe22b56eef352dcd3710118.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/SFX/615532__crash_358__sci-fi-ui-button-sound-005.wav b/SFX/615532__crash_358__sci-fi-ui-button-sound-005.wav new file mode 100644 index 00000000..ffa16ea8 --- /dev/null +++ b/SFX/615532__crash_358__sci-fi-ui-button-sound-005.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac0f384fa46400176a2fe5b3fa4e7069179b25ac7fb33638eb858f50b14738ec +size 302732 diff --git a/SFX/615532__crash_358__sci-fi-ui-button-sound-005.wav.import b/SFX/615532__crash_358__sci-fi-ui-button-sound-005.wav.import new file mode 100644 index 00000000..53a64b59 --- /dev/null +++ b/SFX/615532__crash_358__sci-fi-ui-button-sound-005.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://b0ficxrbhf8om" +path="res://.godot/imported/615532__crash_358__sci-fi-ui-button-sound-005.wav-625455ac2282e452ebf6bae74706405f.sample" + +[deps] + +source_file="res://SFX/615532__crash_358__sci-fi-ui-button-sound-005.wav" +dest_files=["res://.godot/imported/615532__crash_358__sci-fi-ui-button-sound-005.wav-625455ac2282e452ebf6bae74706405f.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/SFX/Artninja_Forcefield_Disable.wav b/SFX/Artninja_Forcefield_Disable.wav new file mode 100644 index 00000000..1e4971c6 --- /dev/null +++ b/SFX/Artninja_Forcefield_Disable.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11310cbe2efccde7c773373093dd82857fd24764363acf27df07c02136774f61 +size 95590 diff --git a/SFX/Artninja_Forcefield_Disable.wav.import b/SFX/Artninja_Forcefield_Disable.wav.import new file mode 100644 index 00000000..cbac6bbf --- /dev/null +++ b/SFX/Artninja_Forcefield_Disable.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://ccxjo86nvcl54" +path="res://.godot/imported/Artninja_Forcefield_Disable.wav-a992ba1711263fe8f185a69427f2413c.sample" + +[deps] + +source_file="res://SFX/Artninja_Forcefield_Disable.wav" +dest_files=["res://.godot/imported/Artninja_Forcefield_Disable.wav-a992ba1711263fe8f185a69427f2413c.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/SFX/Artninja_Forcefield_Enable.wav b/SFX/Artninja_Forcefield_Enable.wav new file mode 100644 index 00000000..747c6d6e --- /dev/null +++ b/SFX/Artninja_Forcefield_Enable.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59822e5d7d1f0cb180d53e9ad99a0e125e965f79f447a7a5f5368eaf595e0e24 +size 95590 diff --git a/SFX/Artninja_Forcefield_Enable.wav.import b/SFX/Artninja_Forcefield_Enable.wav.import new file mode 100644 index 00000000..2ed874b2 --- /dev/null +++ b/SFX/Artninja_Forcefield_Enable.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://ciuv2acfujlys" +path="res://.godot/imported/Artninja_Forcefield_Enable.wav-a054b9d753fb08f0c0e90332e06a0e1c.sample" + +[deps] + +source_file="res://SFX/Artninja_Forcefield_Enable.wav" +dest_files=["res://.godot/imported/Artninja_Forcefield_Enable.wav-a054b9d753fb08f0c0e90332e06a0e1c.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/SFX/teleporter_end.wav b/SFX/teleporter_end.wav new file mode 100644 index 00000000..5b173c03 --- /dev/null +++ b/SFX/teleporter_end.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:924143d57f42477dcb778934328db12ae767929b8526f5662302334da59e737f +size 131324 diff --git a/SFX/teleporter_end.wav.import b/SFX/teleporter_end.wav.import new file mode 100644 index 00000000..5803a4e9 --- /dev/null +++ b/SFX/teleporter_end.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cq1880lc1iwsa" +path="res://.godot/imported/teleporter_end.wav-4e821f04f1b6840bbf254c2e24839f2c.sample" + +[deps] + +source_file="res://SFX/teleporter_end.wav" +dest_files=["res://.godot/imported/teleporter_end.wav-4e821f04f1b6840bbf254c2e24839f2c.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/SFX/teleporter_start.wav b/SFX/teleporter_start.wav new file mode 100644 index 00000000..95273bab --- /dev/null +++ b/SFX/teleporter_start.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b0b9d682fda21086779982158c0e872f6a5d3ec47faa6cec9f5575bbbea51b8 +size 107142 diff --git a/SFX/teleporter_start.wav.import b/SFX/teleporter_start.wav.import new file mode 100644 index 00000000..6c6b9d23 --- /dev/null +++ b/SFX/teleporter_start.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://c4uxtkynonomm" +path="res://.godot/imported/teleporter_start.wav-b867ab372932963a23eb61aed7fcdbe2.sample" + +[deps] + +source_file="res://SFX/teleporter_start.wav" +dest_files=["res://.godot/imported/teleporter_start.wav-b867ab372932963a23eb61aed7fcdbe2.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/Actors/ForceField_Horizontal.tscn b/Scenes/Actors/ForceField_Horizontal.tscn index 1a913840..02df9964 100644 --- a/Scenes/Actors/ForceField_Horizontal.tscn +++ b/Scenes/Actors/ForceField_Horizontal.tscn @@ -1,9 +1,11 @@ -[gd_scene load_steps=25 format=3 uid="uid://b0gpbkxdfbnjh"] +[gd_scene load_steps=27 format=3 uid="uid://b0gpbkxdfbnjh"] [ext_resource type="Script" uid="uid://b2bpqbfeqi4ge" path="res://Scripts/Activables/ForceField.cs" id="1_yxhr6"] [ext_resource type="Texture2D" uid="uid://gc24sjyj47x6" path="res://Sprites/Actors/ForceFieldHorizontal.png" id="2_12wxm"] [ext_resource type="Shader" uid="uid://0ruey5bjl7mh" path="res://Shaders/Blink.gdshader" id="2_q7pky"] [ext_resource type="Shader" uid="uid://cjdl1m3psohju" path="res://Shaders/scanlines_static.tres" id="2_qbobr"] +[ext_resource type="AudioStream" uid="uid://ciuv2acfujlys" path="res://SFX/Artninja_Forcefield_Enable.wav" id="5_8cguw"] +[ext_resource type="AudioStream" uid="uid://ccxjo86nvcl54" path="res://SFX/Artninja_Forcefield_Disable.wav" id="6_3s51g"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_fipgw"] shader = ExtResource("2_q7pky") @@ -175,4 +177,13 @@ gravity_scale = 0.0 visible = false shape = SubResource("RectangleShape2D_f2rl6") +[node name="ActivationSound" type="AudioStreamPlayer2D" parent="."] +position = Vector2(0, 1) +stream = ExtResource("5_8cguw") +max_distance = 200.0 + +[node name="DeactivationSound" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("6_3s51g") +max_distance = 200.0 + [connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"] diff --git a/Scenes/Actors/teleporter.tscn b/Scenes/Actors/teleporter.tscn index 45cb56af..ac5cd47f 100644 --- a/Scenes/Actors/teleporter.tscn +++ b/Scenes/Actors/teleporter.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=5 format=3 uid="uid://byms2dhliyux0"] +[gd_scene load_steps=7 format=3 uid="uid://byms2dhliyux0"] [ext_resource type="Script" uid="uid://c1q7esgfnbvsf" path="res://Scripts/Activables/Teleporter.cs" id="1_juavy"] [ext_resource type="SpriteFrames" uid="uid://w4jlaryen3we" path="res://Resources/Sprites/teleporter.tres" id="2_k58t7"] +[ext_resource type="AudioStream" uid="uid://c4uxtkynonomm" path="res://SFX/teleporter_start.wav" id="3_ox1iw"] +[ext_resource type="AudioStream" uid="uid://cq1880lc1iwsa" path="res://SFX/teleporter_end.wav" id="4_ildd2"] [sub_resource type="CircleShape2D" id="CircleShape2D_kwj8m"] radius = 4.12311 @@ -38,7 +40,15 @@ frame_progress = 0.462812 z_index = 2 emitting = false amount = 50 -process_material = SubResource("ParticleProcessMaterial_we5sc") lifetime = 0.8 +process_material = SubResource("ParticleProcessMaterial_we5sc") + +[node name="TeleportStart" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("3_ox1iw") +max_distance = 100.0 + +[node name="TeleportEnd" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("4_ildd2") +max_distance = 100.0 [connection signal="body_entered" from="." to="." method="_on_body_entered"] diff --git a/Scenes/Door_Horizontal.tscn b/Scenes/Door_Horizontal.tscn index 8f32cf70..cacd2579 100644 --- a/Scenes/Door_Horizontal.tscn +++ b/Scenes/Door_Horizontal.tscn @@ -1,8 +1,10 @@ -[gd_scene load_steps=22 format=3 uid="uid://l84on3kv2s52"] +[gd_scene load_steps=24 format=3 uid="uid://l84on3kv2s52"] [ext_resource type="Script" uid="uid://dwry0643yvdiv" path="res://Scripts/Door.cs" id="1_emfh4"] [ext_resource type="Texture2D" uid="uid://d4ialp36plt7v" path="res://Sprites/Actors/Doors/horizontal_door_1.png" id="2_2h3ih"] [ext_resource type="Texture2D" uid="uid://desg0e2phtw50" path="res://Sprites/HorizontalDoor.png" id="2_rnx3o"] +[ext_resource type="AudioStream" uid="uid://dmsnvo8kdjyt8" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav" id="4_4t32u"] +[ext_resource type="AudioStream" uid="uid://p5n7ijw2qvxy" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav" id="5_spifk"] [sub_resource type="AtlasTexture" id="AtlasTexture_2qgx7"] atlas = ExtResource("2_2h3ih") @@ -171,4 +173,13 @@ shape = SubResource("RectangleShape2D_f2rl6") z_index = 1 sprite_frames = SubResource("SpriteFrames_8stvs") +[node name="ActivationSound" type="AudioStreamPlayer2D" parent="."] +position = Vector2(0, 1) +stream = ExtResource("4_4t32u") +max_distance = 200.0 + +[node name="DeactivationSound" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("5_spifk") +max_distance = 200.0 + [connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"] diff --git a/Scenes/Door_Vertical.tscn b/Scenes/Door_Vertical.tscn index d8b87c91..03465fc2 100644 --- a/Scenes/Door_Vertical.tscn +++ b/Scenes/Door_Vertical.tscn @@ -1,7 +1,9 @@ -[gd_scene load_steps=16 format=3 uid="uid://bc64lr3vlwchq"] +[gd_scene load_steps=18 format=3 uid="uid://bc64lr3vlwchq"] [ext_resource type="Script" uid="uid://dwry0643yvdiv" path="res://Scripts/Door.cs" id="1_e61bg"] [ext_resource type="Texture2D" uid="uid://dwcjixrhq4cdv" path="res://Sprites/DoorVertical.png" id="1_vdvtb"] +[ext_resource type="AudioStream" uid="uid://dmsnvo8kdjyt8" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav" id="3_gt5vd"] +[ext_resource type="AudioStream" uid="uid://p5n7ijw2qvxy" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav" id="4_076sv"] [sub_resource type="AtlasTexture" id="AtlasTexture_mbysk"] atlas = ExtResource("1_vdvtb") @@ -123,4 +125,13 @@ gravity_scale = 0.0 [node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"] shape = SubResource("RectangleShape2D_f2rl6") +[node name="ActivationSound" type="AudioStreamPlayer2D" parent="."] +position = Vector2(0, 1) +stream = ExtResource("3_gt5vd") +max_distance = 200.0 + +[node name="DeactivationSound" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("4_076sv") +max_distance = 200.0 + [connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"] diff --git a/Scenes/Explosion.tscn b/Scenes/Explosion.tscn index fcf6eb03..93516aa9 100644 --- a/Scenes/Explosion.tscn +++ b/Scenes/Explosion.tscn @@ -27,6 +27,6 @@ color_ramp = SubResource("GradientTexture1D_b2evf") [node name="Explosion" type="GPUParticles2D"] emitting = false amount = 20 -process_material = SubResource("ParticleProcessMaterial_4vw6r") one_shot = true explosiveness = 1.0 +process_material = SubResource("ParticleProcessMaterial_4vw6r") diff --git a/Scenes/Interactable/Control_Pad.tscn b/Scenes/Interactable/Control_Pad.tscn index c34920a3..d968155e 100644 --- a/Scenes/Interactable/Control_Pad.tscn +++ b/Scenes/Interactable/Control_Pad.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=7 format=3 uid="uid://crph24e6e0v0q"] +[gd_scene load_steps=8 format=3 uid="uid://crph24e6e0v0q"] [ext_resource type="Script" uid="uid://duhodrhcnoslh" path="res://Scripts/Interactables/Switch.cs" id="1_alima"] [ext_resource type="Texture2D" uid="uid://d24g1qb40t72l" path="res://Sprites/Button_Small.png" id="2_7m30w"] +[ext_resource type="AudioStream" uid="uid://bjvklk7qmlivd" path="res://SFX/288963__littlerobotsoundfactory__click_electronic_14.wav" id="3_54bnp"] [sub_resource type="CircleShape2D" id="CircleShape2D_vvpve"] @@ -39,3 +40,6 @@ shape = SubResource("CircleShape2D_vvpve") sprite_frames = SubResource("SpriteFrames_b2dxw") autoplay = "default" frame_progress = 0.061742 + +[node name="ActivationSound" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("3_54bnp") diff --git a/Scenes/Weapons/Bullets/explosion.tscn b/Scenes/Weapons/Bullets/explosion.tscn index 477f4628..bf88295c 100644 --- a/Scenes/Weapons/Bullets/explosion.tscn +++ b/Scenes/Weapons/Bullets/explosion.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=13 format=3 uid="uid://h11o0et1y54v"] +[gd_scene load_steps=14 format=3 uid="uid://h11o0et1y54v"] [ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_f0epf"] [ext_resource type="Texture2D" uid="uid://b2bp03a70cpyd" path="res://Sprites/Explosion1.png" id="2_gmwb3"] +[ext_resource type="AudioStream" uid="uid://ds84e0m5l4i5d" path="res://SFX/404752__owlstorm__retro-video-game-sfx-explode-3.wav" id="3_wng0j"] [sub_resource type="AtlasTexture" id="AtlasTexture_ltwjd"] atlas = ExtResource("2_gmwb3") @@ -90,6 +91,10 @@ editor_description = "Player Bullet" [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] +[node name="ExplosionSound" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("3_wng0j") +autoplay = true + [connection signal="area_entered" from="." to="." method="_on_area_entered"] [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"] diff --git a/Scenes/test.tscn b/Scenes/test.tscn index 1b453fed..4f22f9ee 100644 --- a/Scenes/test.tscn +++ b/Scenes/test.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=120 format=4 uid="uid://bv451a8wgty4u"] +[gd_scene load_steps=121 format=4 uid="uid://bv451a8wgty4u"] [ext_resource type="Script" uid="uid://doxmbokehw8ci" path="res://Scripts/GameManager.cs" id="1_8tmoj"] [ext_resource type="PackedScene" uid="uid://bghghp5ep4w2j" path="res://Scenes/player.tscn" id="2_8mh54"] @@ -80,6 +80,7 @@ [ext_resource type="PackedScene" uid="uid://dfat0erkvb513" path="res://Scenes/Actors/Fairy_New.tscn" id="73_s4x1s"] [ext_resource type="PackedScene" uid="uid://c21m7w5ahpsd0" path="res://Scenes/Activable/Shroud.tscn" id="74_oaf68"] [ext_resource type="PackedScene" uid="uid://b3tyacxxw88lx" path="res://Scenes/Utils/StreamPlayerWithName.tscn" id="77_yot54"] +[ext_resource type="AudioStream" uid="uid://blohh20jktoyo" path="res://SFX/270641__phantastonia__alarm2.wav" id="79_jn1m0"] [ext_resource type="Resource" uid="uid://b0jpn0kkmciuq" path="res://Resources/Music/Overtime_Fairy_Dance.tres" id="82_ksslq"] [ext_resource type="PackedScene" uid="uid://cvctgw8eo2f7e" path="res://Scenes/Items/SpiderBomb_Pickup.tscn" id="83_jn1m0"] @@ -475,7 +476,7 @@ SpawnMarkers = Dictionary[int, NodePath]({ 2: NodePath("Factory Tilemaps/LevelProps/BossDebugTeleporterDestination"), 255: NodePath("Factory Tilemaps/Debug Room/DebugRoomStartPosition") }) -StartingEquipment = Array[ExtResource("6_8tdlb")]([ExtResource("4_swym2"), ExtResource("5_nqier")]) +StartingEquipment = [ExtResource("4_swym2"), ExtResource("5_nqier")] MapStartData = SubResource("Resource_6sau4") metadata/_edit_lock_ = true @@ -1153,7 +1154,9 @@ script = ExtResource("18_dvo37") [node name="AlarmManager" type="Node2D" parent="."] process_mode = 1 +position = Vector2(-4, 0) script = ExtResource("25_rpwvt") +AlarmSound = ExtResource("79_jn1m0") [node name="HUD" parent="." instance=ExtResource("22_krk0o")] diff --git a/Scripts/Activables/ForceField.cs b/Scripts/Activables/ForceField.cs index c4b3ded9..d8a675ab 100644 --- a/Scripts/Activables/ForceField.cs +++ b/Scripts/Activables/ForceField.cs @@ -10,7 +10,7 @@ public partial class ForceField : Door [Export] public Material ActiveMaterial { get; private set; } - + // Disable public override void Open() { @@ -19,7 +19,6 @@ public partial class ForceField : Door _animatedSprite.Material = TurnOffMaterial; //((ShaderMaterial)_animatedSprite.Material).Shader = TurnOffShader; - _ = AnimateShutdownAsync(); } diff --git a/Scripts/Activables/Teleporter.cs b/Scripts/Activables/Teleporter.cs index db7c2d81..8817a089 100644 --- a/Scripts/Activables/Teleporter.cs +++ b/Scripts/Activables/Teleporter.cs @@ -35,6 +35,9 @@ public partial class Teleporter : Activable protected GpuParticles2D _particles; +private AudioStreamPlayer2D _teleportStartSound; +private AudioStreamPlayer2D _teleportEndSound; + public override void _Ready() { _particles = GetNode("./Particles"); @@ -54,6 +57,9 @@ public partial class Teleporter : Activable { _animatedSprite.Play("Default"); } + + _teleportStartSound = GetNodeOrNull("TeleportStart"); + _teleportEndSound = GetNodeOrNull("TeleportEnd"); } public override void _Process(double delta) @@ -133,6 +139,8 @@ public partial class Teleporter : Activable await TweenPlayer(player); + PlayTeleportStartSound(); + //_particles.Emitting = true; FireParticles(); @@ -142,12 +150,22 @@ public partial class Teleporter : Activable Target.PrepareForReceiving(); player.GlobalPosition = Target.GlobalPosition + TeleportOffset; - + Target.PlayTeleportEndSound(); await player.UnTeleport(); player.RequestMovementDisable(false); } + public void PlayTeleportStartSound() + { + _teleportStartSound?.Play(); + } + + public void PlayTeleportEndSound() + { + _teleportEndSound?.Play(); + } + protected async Task TweenPlayer(PlayerMovement player) { await player.TweenGlobalPosition(GlobalPosition + new Vector2(0, -4f), TeleportAnimationLength).PlayAsync(CancellationToken.None); diff --git a/Scripts/AlarmManager.cs b/Scripts/AlarmManager.cs index e588474e..2e78bc8c 100644 --- a/Scripts/AlarmManager.cs +++ b/Scripts/AlarmManager.cs @@ -4,6 +4,9 @@ namespace Cirno.Scripts; public partial class AlarmManager : Node2D { + [Export] + public AudioStream AlarmSound { get; private set; } + public static AlarmManager Instance { get; private set; } public bool IsAlarmOn { get; private set; } = false; @@ -16,9 +19,20 @@ public partial class AlarmManager : Node2D [Signal] public delegate void AlarmDisabledEventHandler(); + private AudioStreamPlayer2D _player; + public override void _Ready() { Instance = this; + + if (AlarmSound is not null) + { + var player = new AudioStreamPlayer2D(); + player.Stream = AlarmSound; + this.CallDeferred("add_child", player); + + _player = player; + } } public void SoundAlarm(Vector2 location) @@ -29,11 +43,13 @@ public partial class AlarmManager : Node2D EmitSignal(nameof(AlarmEnabled), location); GD.Print($"Alarm sounded at {location}"); + _player?.Play(); } public void DisableAlarm() { IsAlarmOn = false; EmitSignal(nameof(AlarmDisabled)); + _player?.Stop(); } } \ No newline at end of file diff --git a/Scripts/Door.cs b/Scripts/Door.cs index fd4874f2..73bbfaa8 100644 --- a/Scripts/Door.cs +++ b/Scripts/Door.cs @@ -8,6 +8,9 @@ public partial class Door : Activable protected AnimatedSprite2D _animatedSprite; protected CollisionShape2D _collisionShape; protected CollisionShape2D _solidShape; + + protected AudioStreamPlayer2D _activationSound; + protected AudioStreamPlayer2D _deactivationSound; // Called when the node enters the scene tree for the first time. [Export] @@ -25,6 +28,9 @@ public partial class Door : Activable _collisionShape = GetNode("CollisionShape2D"); _solidShape = GetNode("RigidBody2D/CollisionShape2D"); + _activationSound = GetNodeOrNull("ActivationSound"); + _deactivationSound = GetNodeOrNull("DeactivationSound"); + SetState(State); } @@ -38,6 +44,7 @@ public partial class Door : Activable _animatedSprite.Play("Opening"); State = DoorState.Open; CallDeferred(MethodName.DeferredDisableCollision, true); + _deactivationSound?.Play(); //_collisionShape.Disabled = true; //_solidShape.Disabled = true; } @@ -47,6 +54,7 @@ public partial class Door : Activable _animatedSprite.Play("Closing"); State = DoorState.Closed; CallDeferred(MethodName.DeferredDisableCollision, false); + _activationSound?.Play(); //_collisionShape.Disabled = false; //_solidShape.Disabled = false; } diff --git a/Scripts/Interactables/Switch.cs b/Scripts/Interactables/Switch.cs index 29a1eb9e..74583ae1 100644 --- a/Scripts/Interactables/Switch.cs +++ b/Scripts/Interactables/Switch.cs @@ -10,9 +10,19 @@ public partial class Switch : Interactable [Export] public Array Targets { get; private set; } = new Array(); [Export] public ActivationType ActivationType { get; set; } = ActivationType.Toggle; + private AudioStreamPlayer2D _activationSound; + + private readonly string _activationSoundName = "ActivationSound"; + + public override void _Ready() + { + _activationSound = GetNodeOrNull(_activationSoundName); + } + public override bool Activate() { if (!MeetsRequirements()) return false; + _activationSound?.Play(); // Compatibility for old single system bool success = ActivateTarget(Target);