From c5d39343d47e9c967a596dbcdaff58ebf56ff022 Mon Sep 17 00:00:00 2001 From: Jonas Bernard Date: Mon, 26 Apr 2021 19:08:33 +0200 Subject: Background Music --- ...rack_1.wav-7bc7e4032841b885dc6a163ceaa4320d.md5 | 3 +++ ...k_1.wav-7bc7e4032841b885dc6a163ceaa4320d.sample | Bin 0 -> 69525857 bytes ...uccess.wav-bd2804ebcb394f8b19ab097811e263f4.md5 | 4 ++-- ...ess.wav-bd2804ebcb394f8b19ab097811e263f4.sample | Bin 1482605 -> 145081 bytes project.godot | 1 + scenes/background_music.tscn | 8 ++++++++ scenes/menu.tscn | 1 - sfx/sound_track_1.mpeg | Bin 0 -> 9459322 bytes sfx/sound_track_1.wav | 3 +++ sfx/sound_track_1.wav.import | 21 +++++++++++++++++++++ sfx/success.wav | Bin 1482318 -> 289594 bytes 11 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 .import/sound_track_1.wav-7bc7e4032841b885dc6a163ceaa4320d.md5 create mode 100644 .import/sound_track_1.wav-7bc7e4032841b885dc6a163ceaa4320d.sample create mode 100644 scenes/background_music.tscn create mode 100644 sfx/sound_track_1.mpeg create mode 100644 sfx/sound_track_1.wav create mode 100644 sfx/sound_track_1.wav.import diff --git a/.import/sound_track_1.wav-7bc7e4032841b885dc6a163ceaa4320d.md5 b/.import/sound_track_1.wav-7bc7e4032841b885dc6a163ceaa4320d.md5 new file mode 100644 index 0000000..01b4847 --- /dev/null +++ b/.import/sound_track_1.wav-7bc7e4032841b885dc6a163ceaa4320d.md5 @@ -0,0 +1,3 @@ +source_md5="73b59c1e69d340402b34b81526560ab5" +dest_md5="6e045405e880f24cb42ffc55470b0222" + diff --git a/.import/sound_track_1.wav-7bc7e4032841b885dc6a163ceaa4320d.sample b/.import/sound_track_1.wav-7bc7e4032841b885dc6a163ceaa4320d.sample new file mode 100644 index 0000000..b799ee6 Binary files /dev/null and b/.import/sound_track_1.wav-7bc7e4032841b885dc6a163ceaa4320d.sample differ diff --git a/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.md5 b/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.md5 index 58b6dc3..7056619 100644 --- a/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.md5 +++ b/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.md5 @@ -1,3 +1,3 @@ -source_md5="0f80ee2b085d2e399a94e8ac47d2112e" -dest_md5="a50686caaaf191a0688e872aa434d6fc" +source_md5="8385ddd77a806a843404ab2723d76c8d" +dest_md5="4a087884068ba74ae12644535ae1c3e1" diff --git a/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.sample b/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.sample index e6e64f5..e1fdc82 100644 Binary files a/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.sample and b/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.sample differ diff --git a/project.godot b/project.godot index 659ebc6..70b5338 100644 --- a/project.godot +++ b/project.godot @@ -64,6 +64,7 @@ config/icon="res://icon.png" [autoload] Settings="*res://components/Settings.gd" +BackgroundMusic="*res://scenes/background_music.tscn" [display] diff --git a/scenes/background_music.tscn b/scenes/background_music.tscn new file mode 100644 index 0000000..f43aabf --- /dev/null +++ b/scenes/background_music.tscn @@ -0,0 +1,8 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://sfx/sound_track_1.wav" type="AudioStream" id=1] + +[node name="AudioStreamPlayer" type="AudioStreamPlayer"] +stream = ExtResource( 1 ) +volume_db = -11.976 +autoplay = true diff --git a/scenes/menu.tscn b/scenes/menu.tscn index c8883b6..27a76e1 100644 --- a/scenes/menu.tscn +++ b/scenes/menu.tscn @@ -198,7 +198,6 @@ anims/tosettings = SubResource( 4 ) [node name="success_sound" type="AudioStreamPlayer" parent="."] stream = ExtResource( 9 ) - [connection signal="on_click" from="Content/Back" to="." method="_on_Back_on_click"] [connection signal="on_click" from="Content/HardMode" to="." method="_on_HardMode_on_click"] [connection signal="on_click" from="Content/Exit" to="." method="_on_Exit_on_click"] diff --git a/sfx/sound_track_1.mpeg b/sfx/sound_track_1.mpeg new file mode 100644 index 0000000..d955166 Binary files /dev/null and b/sfx/sound_track_1.mpeg differ diff --git a/sfx/sound_track_1.wav b/sfx/sound_track_1.wav new file mode 100644 index 0000000..1e9aaa0 --- /dev/null +++ b/sfx/sound_track_1.wav @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47100bbc6bd78b20d59cfb52af9d113140f3efb2c509ff4360a1c5f02e5e1c15 +size 139051052 diff --git a/sfx/sound_track_1.wav.import b/sfx/sound_track_1.wav.import new file mode 100644 index 0000000..8193947 --- /dev/null +++ b/sfx/sound_track_1.wav.import @@ -0,0 +1,21 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/sound_track_1.wav-7bc7e4032841b885dc6a163ceaa4320d.sample" + +[deps] + +source_file="res://sfx/sound_track_1.wav" +dest_files=[ "res://.import/sound_track_1.wav-7bc7e4032841b885dc6a163ceaa4320d.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=false +compress/mode=0 diff --git a/sfx/success.wav b/sfx/success.wav index a6df6f4..64014b6 100644 Binary files a/sfx/success.wav and b/sfx/success.wav differ -- cgit