summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.import/success.mp3-d060cd5e04b3a14909175dc0227d81aa.md53
-rw-r--r--.import/success.ogg-b6253a0aa45fb8b526b748c73f3f526e.md51
-rw-r--r--.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.md53
-rw-r--r--.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.samplebin0 -> 1482605 bytes
-rw-r--r--scenes/menu.gd2
-rw-r--r--scenes/menu.tscn7
-rw-r--r--sfx/success.wavbin0 -> 1482318 bytes
-rw-r--r--sfx/success.wav.import21
8 files changed, 36 insertions, 1 deletions
diff --git a/.import/success.mp3-d060cd5e04b3a14909175dc0227d81aa.md5 b/.import/success.mp3-d060cd5e04b3a14909175dc0227d81aa.md5
new file mode 100644
index 0000000..4e630ac
--- /dev/null
+++ b/.import/success.mp3-d060cd5e04b3a14909175dc0227d81aa.md5
@@ -0,0 +1,3 @@
+source_md5="a33bc7014e4fa45e303476c883b6e8cf"
+dest_md5="9daed49e4dad332e3e965e16f3399056"
+
diff --git a/.import/success.ogg-b6253a0aa45fb8b526b748c73f3f526e.md5 b/.import/success.ogg-b6253a0aa45fb8b526b748c73f3f526e.md5
new file mode 100644
index 0000000..41b9c42
--- /dev/null
+++ b/.import/success.ogg-b6253a0aa45fb8b526b748c73f3f526e.md5
@@ -0,0 +1 @@
+source_md5="3e5b3e0920edb1a5196c12b141535e14"
diff --git a/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.md5 b/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.md5
new file mode 100644
index 0000000..58b6dc3
--- /dev/null
+++ b/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.md5
@@ -0,0 +1,3 @@
+source_md5="0f80ee2b085d2e399a94e8ac47d2112e"
+dest_md5="a50686caaaf191a0688e872aa434d6fc"
+
diff --git a/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.sample b/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.sample
new file mode 100644
index 0000000..e6e64f5
--- /dev/null
+++ b/.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.sample
Binary files differ
diff --git a/scenes/menu.gd b/scenes/menu.gd
index f0be2dd..646bc1a 100644
--- a/scenes/menu.gd
+++ b/scenes/menu.gd
@@ -20,6 +20,7 @@ func _on_Outgoing_animation_finished(anim_name):
func _on_Back_on_click():
+ $success_sound.play(0.5)
$Outgoing.play_backwards("tosettings")
func _difficulty_text():
@@ -34,4 +35,5 @@ func _on_HardMode_on_click():
Settings.save()
func _on_SettingsButton_on_click():
+ $success_sound.play()
$Outgoing.play("tosettings")
diff --git a/scenes/menu.tscn b/scenes/menu.tscn
index 48707b6..c8883b6 100644
--- a/scenes/menu.tscn
+++ b/scenes/menu.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=13 format=2]
+[gd_scene load_steps=14 format=2]
[ext_resource path="res://components/Logo.tscn" type="PackedScene" id=1]
[ext_resource path="res://components/button.tscn" type="PackedScene" id=2]
@@ -8,6 +8,7 @@
[ext_resource path="res://textures/texts/name.png" type="Texture" id=6]
[ext_resource path="res://textures/icons/light_bulb.png" type="Texture" id=7]
[ext_resource path="res://textures/icons/light_bulb_r.png" type="Texture" id=8]
+[ext_resource path="res://sfx/success.wav" type="AudioStream" id=9]
[sub_resource type="AnimatedTexture" id=1]
frames = 2
@@ -194,6 +195,10 @@ anims/startgame = SubResource( 2 )
[node name="Outgoing" type="AnimationPlayer" parent="."]
anims/tointro = SubResource( 3 )
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/success.wav b/sfx/success.wav
new file mode 100644
index 0000000..a6df6f4
--- /dev/null
+++ b/sfx/success.wav
Binary files differ
diff --git a/sfx/success.wav.import b/sfx/success.wav.import
new file mode 100644
index 0000000..175b1ad
--- /dev/null
+++ b/sfx/success.wav.import
@@ -0,0 +1,21 @@
+[remap]
+
+importer="wav"
+type="AudioStreamSample"
+path="res://.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.sample"
+
+[deps]
+
+source_file="res://sfx/success.wav"
+dest_files=[ "res://.import/success.wav-bd2804ebcb394f8b19ab097811e263f4.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