diff options
author | Henrique Alves <henriquelalves@gmail.com> | 2022-07-17 13:09:36 -0300 |
---|---|---|
committer | Henrique Alves <henriquelalves@gmail.com> | 2022-07-17 13:09:36 -0300 |
commit | c417d3d9d1f77d423edb24a6761176e0f89a1b21 (patch) | |
tree | 0a7a2bc66a509932676a455761e966e2f12469f7 | |
parent | 2623c2bf46a3d8a84948142f67653543e1f760ab (diff) | |
download | gamejam-gmtk-2022-c417d3d9d1f77d423edb24a6761176e0f89a1b21.tar.gz gamejam-gmtk-2022-c417d3d9d1f77d423edb24a6761176e0f89a1b21.tar.bz2 gamejam-gmtk-2022-c417d3d9d1f77d423edb24a6761176e0f89a1b21.zip |
victory fanfare
-rw-r--r-- | Assets/Sound/fanfare.wav | bin | 0 -> 359448 bytes | |||
-rw-r--r-- | Assets/Sound/fanfare.wav.import | 21 | ||||
-rw-r--r-- | Scenes/Transition.gd | 2 | ||||
-rw-r--r-- | Scenes/Transition.tscn | 7 |
4 files changed, 29 insertions, 1 deletions
diff --git a/Assets/Sound/fanfare.wav b/Assets/Sound/fanfare.wav Binary files differnew file mode 100644 index 0000000..c77d72e --- /dev/null +++ b/Assets/Sound/fanfare.wav diff --git a/Assets/Sound/fanfare.wav.import b/Assets/Sound/fanfare.wav.import new file mode 100644 index 0000000..3b7f509 --- /dev/null +++ b/Assets/Sound/fanfare.wav.import @@ -0,0 +1,21 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/fanfare.wav-a2292eb218b942b5f3b9aae697a1557a.sample" + +[deps] + +source_file="res://Assets/Sound/fanfare.wav" +dest_files=[ "res://.import/fanfare.wav-a2292eb218b942b5f3b9aae697a1557a.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/Scenes/Transition.gd b/Scenes/Transition.gd index a9f6019..05bfb43 100644 --- a/Scenes/Transition.gd +++ b/Scenes/Transition.gd @@ -15,6 +15,8 @@ func _ready(): get_node(dices[prev_stage]).show() if Global.turns > 0: + if Global.current_stage != 0: + $AudioFanfare.play() if prev_stage == 5: victory() else: diff --git a/Scenes/Transition.tscn b/Scenes/Transition.tscn index 76f74d2..d3cac4c 100644 --- a/Scenes/Transition.tscn +++ b/Scenes/Transition.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=31 format=2] +[gd_scene load_steps=32 format=2] [ext_resource path="res://Assets/transition.png" type="Texture" id=1] [ext_resource path="res://Scenes/CameraControl.gd" type="Script" id=2] @@ -15,6 +15,7 @@ [ext_resource path="res://Assets/4_dots.png" type="Texture" id=13] [ext_resource path="res://Assets/Sound/explosion.wav" type="AudioStream" id=14] [ext_resource path="res://Assets/2_dots_blue.png" type="Texture" id=15] +[ext_resource path="res://Assets/Sound/fanfare.wav" type="AudioStream" id=16] [sub_resource type="QuadMesh" id=5] @@ -631,3 +632,7 @@ anims/RESET = SubResource( 18 ) [node name="AudioExplosion" type="AudioStreamPlayer" parent="."] stream = ExtResource( 14 ) volume_db = -20.0 + +[node name="AudioFanfare" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 16 ) +volume_db = -15.0 |