diff --git a/README.md b/README.md index 85e328d..5784771 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,10 @@ We have a [Code of Conduct](CODE_OF_CONDUCT.md) in place that applies to all pro Logo of the German Ministry for Education and Research            Logo of the Prototype Fund            Logo of the Open Knowledge Foundation Germany +## Thanks + +- "success" sound by [Leszek_Szarzy, CC0](https://freesound.org/people/Leszek_Szary/sounds/171670/) + ## License [Blue Oak Model License 1.0.0](LICENSE.md) – a [modern alternative](https://writing.kemitchell.com/2019/03/09/Deprecation-Notice.html) to the MIT license. It's a a pleasant read! :) diff --git a/main.gd b/main.gd index db14e6f..396faa4 100644 --- a/main.gd +++ b/main.gd @@ -111,6 +111,7 @@ func show_win_status(): next_level_button.show() level_description.hide() level_congrats.show() + $SuccessSound.play() func repopulate_levels(): levels.reload() diff --git a/main.tscn b/main.tscn index 16cb6b1..e74cf59 100644 --- a/main.tscn +++ b/main.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=10 format=2] +[gd_scene load_steps=11 format=2] [ext_resource path="res://terminal.tscn" type="PackedScene" id=1] [ext_resource path="res://main.gd" type="Script" id=2] @@ -7,6 +7,7 @@ [ext_resource path="res://tcp_server.tscn" type="PackedScene" id=5] [ext_resource path="res://styles/theme.tres" type="Theme" id=6] [ext_resource path="res://fonts/big.tres" type="DynamicFont" id=7] +[ext_resource path="res://sounds/success.wav" type="AudioStream" id=8] [ext_resource path="res://test.gd" type="Script" id=9] [sub_resource type="StyleBoxFlat" id=1] @@ -218,6 +219,9 @@ caret_blink = true __meta__ = { "_edit_use_anchors_": false } + +[node name="SuccessSound" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 8 ) [connection signal="button_down" from="Rows/Columns/RightSide/TopStuff/Menu/ChapterSelect" to="." method="repopulate_chapters"] [connection signal="button_down" from="Rows/Columns/RightSide/TopStuff/Menu/LevelSelect" to="." method="repopulate_levels"] [connection signal="pressed" from="Rows/Columns/RightSide/TopStuff/Menu/ReloadButton" to="." method="reload_level"] diff --git a/sounds/success.wav b/sounds/success.wav new file mode 100644 index 0000000..3de7a1d Binary files /dev/null and b/sounds/success.wav differ diff --git a/sounds/success.wav.import b/sounds/success.wav.import new file mode 100644 index 0000000..b6da387 --- /dev/null +++ b/sounds/success.wav.import @@ -0,0 +1,21 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/success.wav-51d483ad4ceec15770f55296ad79faf0.sample" + +[deps] + +source_file="res://sounds/success.wav" +dest_files=[ "res://.import/success.wav-51d483ad4ceec15770f55296ad79faf0.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