diff options
author | Henrique Alves <henriquelalves@gmail.com> | 2022-07-17 12:25:39 -0300 |
---|---|---|
committer | Henrique Alves <henriquelalves@gmail.com> | 2022-07-17 12:25:39 -0300 |
commit | 06ea6608202adbcbc372e6c28065b022485563f2 (patch) | |
tree | 6b7a14cc66f6c979075219f869dfee85fe371450 | |
parent | f81104c60ecff4a7810501bbac9828bec12d74cc (diff) | |
download | gamejam-gmtk-2022-06ea6608202adbcbc372e6c28065b022485563f2.tar.gz gamejam-gmtk-2022-06ea6608202adbcbc372e6c28065b022485563f2.tar.bz2 gamejam-gmtk-2022-06ea6608202adbcbc372e6c28065b022485563f2.zip |
Add sfx
-rw-r--r-- | Assets/Sound/coin_sound.wav | bin | 0 -> 32348 bytes | |||
-rw-r--r-- | Assets/Sound/coin_sound.wav.import | 21 | ||||
-rw-r--r-- | Assets/Sound/crystal.wav | bin | 0 -> 199400 bytes | |||
-rw-r--r-- | Assets/Sound/crystal.wav.import | 21 | ||||
-rw-r--r-- | Assets/Sound/dice_moving.wav | bin | 0 -> 42600 bytes | |||
-rw-r--r-- | Assets/Sound/dice_moving.wav.import | 21 | ||||
-rw-r--r-- | Assets/Sound/explosion.wav | bin | 0 -> 124000 bytes | |||
-rw-r--r-- | Assets/Sound/explosion.wav.import | 21 | ||||
-rw-r--r-- | Assets/Sound/peludito.wav | bin | 0 -> 128080 bytes | |||
-rw-r--r-- | Assets/Sound/peludito.wav.import | 21 | ||||
-rw-r--r-- | Scenes/Crystal.gd | 1 | ||||
-rw-r--r-- | Scenes/Crystal.tscn | 8 | ||||
-rw-r--r-- | Scenes/Dungeon.tscn | 4 | ||||
-rw-r--r-- | Scenes/Global.gd | 2 | ||||
-rw-r--r-- | Scenes/Monster.gd | 2 | ||||
-rw-r--r-- | Scenes/Monster.tscn | 7 | ||||
-rw-r--r-- | Scenes/Player.gd | 1 | ||||
-rw-r--r-- | Scenes/Player.tscn | 7 | ||||
-rw-r--r-- | Scenes/ScoreParticle.gd | 3 | ||||
-rw-r--r-- | Scenes/ScoreParticle.tscn | 7 | ||||
-rw-r--r-- | Scenes/Transition.gd | 1 | ||||
-rw-r--r-- | Scenes/Transition.tscn | 7 |
22 files changed, 147 insertions, 8 deletions
diff --git a/Assets/Sound/coin_sound.wav b/Assets/Sound/coin_sound.wav Binary files differnew file mode 100644 index 0000000..1587484 --- /dev/null +++ b/Assets/Sound/coin_sound.wav diff --git a/Assets/Sound/coin_sound.wav.import b/Assets/Sound/coin_sound.wav.import new file mode 100644 index 0000000..4042e5a --- /dev/null +++ b/Assets/Sound/coin_sound.wav.import @@ -0,0 +1,21 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/coin_sound.wav-93c0d868ac40de11914401a01a033328.sample" + +[deps] + +source_file="res://Assets/Sound/coin_sound.wav" +dest_files=[ "res://.import/coin_sound.wav-93c0d868ac40de11914401a01a033328.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/Assets/Sound/crystal.wav b/Assets/Sound/crystal.wav Binary files differnew file mode 100644 index 0000000..4dd93f7 --- /dev/null +++ b/Assets/Sound/crystal.wav diff --git a/Assets/Sound/crystal.wav.import b/Assets/Sound/crystal.wav.import new file mode 100644 index 0000000..b1d0df5 --- /dev/null +++ b/Assets/Sound/crystal.wav.import @@ -0,0 +1,21 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/crystal.wav-12a4ebf061f3c65d36f60755a921aec3.sample" + +[deps] + +source_file="res://Assets/Sound/crystal.wav" +dest_files=[ "res://.import/crystal.wav-12a4ebf061f3c65d36f60755a921aec3.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/Assets/Sound/dice_moving.wav b/Assets/Sound/dice_moving.wav Binary files differnew file mode 100644 index 0000000..e7aa941 --- /dev/null +++ b/Assets/Sound/dice_moving.wav diff --git a/Assets/Sound/dice_moving.wav.import b/Assets/Sound/dice_moving.wav.import new file mode 100644 index 0000000..f5826ee --- /dev/null +++ b/Assets/Sound/dice_moving.wav.import @@ -0,0 +1,21 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/dice_moving.wav-8f67a2a1cd25ae58634c18c9f943f96b.sample" + +[deps] + +source_file="res://Assets/Sound/dice_moving.wav" +dest_files=[ "res://.import/dice_moving.wav-8f67a2a1cd25ae58634c18c9f943f96b.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/Assets/Sound/explosion.wav b/Assets/Sound/explosion.wav Binary files differnew file mode 100644 index 0000000..86d8570 --- /dev/null +++ b/Assets/Sound/explosion.wav diff --git a/Assets/Sound/explosion.wav.import b/Assets/Sound/explosion.wav.import new file mode 100644 index 0000000..f002907 --- /dev/null +++ b/Assets/Sound/explosion.wav.import @@ -0,0 +1,21 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/explosion.wav-61739d31e2f6159a680a7e1d7b800070.sample" + +[deps] + +source_file="res://Assets/Sound/explosion.wav" +dest_files=[ "res://.import/explosion.wav-61739d31e2f6159a680a7e1d7b800070.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/Assets/Sound/peludito.wav b/Assets/Sound/peludito.wav Binary files differnew file mode 100644 index 0000000..ab9477d --- /dev/null +++ b/Assets/Sound/peludito.wav diff --git a/Assets/Sound/peludito.wav.import b/Assets/Sound/peludito.wav.import new file mode 100644 index 0000000..2117073 --- /dev/null +++ b/Assets/Sound/peludito.wav.import @@ -0,0 +1,21 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/peludito.wav-9ace920181ae0824da71df8538721cff.sample" + +[deps] + +source_file="res://Assets/Sound/peludito.wav" +dest_files=[ "res://.import/peludito.wav-9ace920181ae0824da71df8538721cff.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/Crystal.gd b/Scenes/Crystal.gd index f3ac484..af5ece4 100644 --- a/Scenes/Crystal.gd +++ b/Scenes/Crystal.gd @@ -29,6 +29,7 @@ func cor_activate(args : Array): yield(get_tree(), "idle_frame") + $AudioStreamPlayer.play() $AnimationPlayer.play("Activate") yield($AnimationPlayer,"animation_finished") $AnimationPlayer.play("Active") diff --git a/Scenes/Crystal.tscn b/Scenes/Crystal.tscn index 3331edf..6701dce 100644 --- a/Scenes/Crystal.tscn +++ b/Scenes/Crystal.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=9 format=2] +[gd_scene load_steps=10 format=2] [ext_resource path="res://Scenes/Crystal.gd" type="Script" id=1] [ext_resource path="res://Assets/Environment/crystal.gltf" type="PackedScene" id=2] [ext_resource path="res://Assets/blob_shadow.png" type="Texture" id=3] +[ext_resource path="res://Assets/Sound/crystal.wav" type="AudioStream" id=4] [sub_resource type="PrismMesh" id=3] size = Vector3( 1, 1, 1 ) @@ -130,3 +131,8 @@ anims/RESET = SubResource( 6 ) transform = Transform( 2.5, 0, 0, 0, -1.09278e-07, -1, 0, 2.5, -4.37114e-08, 0, 0.001, 0 ) modulate = Color( 0, 0, 0, 0.435294 ) texture = ExtResource( 3 ) + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 4 ) +volume_db = -20.0 +pitch_scale = 0.7 diff --git a/Scenes/Dungeon.tscn b/Scenes/Dungeon.tscn index 89d5274..b3d619f 100644 --- a/Scenes/Dungeon.tscn +++ b/Scenes/Dungeon.tscn @@ -385,8 +385,8 @@ modulate = Color( 0.690196, 0.494118, 0.768627, 1 ) anchor_right = 1.0 anchor_bottom = 1.0 margin_top = -300.0 -margin_right = 128.0 -margin_bottom = -180.0 +margin_right = 1152.0 +margin_bottom = 420.0 rect_rotation = -0.0481524 texture = ExtResource( 8 ) expand = true diff --git a/Scenes/Global.gd b/Scenes/Global.gd index 1bda622..6b40d87 100644 --- a/Scenes/Global.gd +++ b/Scenes/Global.gd @@ -7,7 +7,7 @@ onready var turns = STARTING_TURNS setget set_turns onready var current_stage = 0 setget set_stage onready var active_crystals = 0 setget set_crystals onready var max_crystals = 0 -onready var onboarding = true +onready var onboarding = false signal update_ui diff --git a/Scenes/Monster.gd b/Scenes/Monster.gd index a760d64..4293a49 100644 --- a/Scenes/Monster.gd +++ b/Scenes/Monster.gd @@ -26,6 +26,8 @@ func cor_stomp(args : Array): func cor_dies(args : Array): $AnimationPlayer.play("fucking_dies") + $FuckingDies.pitch_scale = 1.5 + randf() + $FuckingDies.play() yield($AnimationPlayer, "animation_finished") hide() diff --git a/Scenes/Monster.tscn b/Scenes/Monster.tscn index 09e758a..3922973 100644 --- a/Scenes/Monster.tscn +++ b/Scenes/Monster.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=8 format=2] +[gd_scene load_steps=9 format=2] [ext_resource path="res://Assets/Enemies/Bat-Monster.png" type="Texture" id=1] [ext_resource path="res://Scenes/Monster.gd" type="Script" id=2] [ext_resource path="res://Assets/blob_shadow.png" type="Texture" id=3] +[ext_resource path="res://Assets/Sound/peludito.wav" type="AudioStream" id=4] [sub_resource type="Animation" id=4] resource_name = "Idle" @@ -142,3 +143,7 @@ anims/Idle = SubResource( 4 ) anims/RESET = SubResource( 1 ) anims/fucking_dies = SubResource( 2 ) anims/stomp = SubResource( 3 ) + +[node name="FuckingDies" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 4 ) +pitch_scale = 2.0 diff --git a/Scenes/Player.gd b/Scenes/Player.gd index 21d182e..0e05204 100644 --- a/Scenes/Player.gd +++ b/Scenes/Player.gd @@ -93,6 +93,7 @@ func cor_move(args : Array): # args = [Vector3, float] break yield(get_tree(), "idle_frame") + $AudioStreamPlayer.play() func cor_half_move(args : Array): # args = [Vector3, float] var pos_original = translation diff --git a/Scenes/Player.tscn b/Scenes/Player.tscn index 0ec3d52..da12e00 100644 --- a/Scenes/Player.tscn +++ b/Scenes/Player.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=14 format=2] +[gd_scene load_steps=15 format=2] [ext_resource path="res://Scenes/Player.gd" type="Script" id=1] [ext_resource path="res://Assets/2_dots_blue.png" type="Texture" id=2] @@ -6,6 +6,7 @@ [ext_resource path="res://Assets/DiceFaceMaterial.tres" type="Material" id=4] [ext_resource path="res://Assets/3_dots_blue.png" type="Texture" id=5] [ext_resource path="res://Assets/4_dots.png" type="Texture" id=6] +[ext_resource path="res://Assets/Sound/dice_moving.wav" type="AudioStream" id=7] [ext_resource path="res://Assets/6_dots.png" type="Texture" id=8] [sub_resource type="QuadMesh" id=5] @@ -65,3 +66,7 @@ material/0 = SubResource( 9 ) transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, -0.5 ) mesh = SubResource( 5 ) material/0 = SubResource( 10 ) + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 7 ) +pitch_scale = 2.93 diff --git a/Scenes/ScoreParticle.gd b/Scenes/ScoreParticle.gd index 51a23f5..5deb893 100644 --- a/Scenes/ScoreParticle.gd +++ b/Scenes/ScoreParticle.gd @@ -16,3 +16,6 @@ func animate(): animation_player.add_animation("Animate", anim) animation_player.play("Animate") + + yield(animation_player, "animation_finished") + $AudioStreamPlayer.play() diff --git a/Scenes/ScoreParticle.tscn b/Scenes/ScoreParticle.tscn index 5a0397e..4c0b436 100644 --- a/Scenes/ScoreParticle.tscn +++ b/Scenes/ScoreParticle.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=5 format=2] +[gd_scene load_steps=6 format=2] [ext_resource path="res://Scenes/ScoreParticle.gd" type="Script" id=1] [ext_resource path="res://Assets/Environment/turn-icon.png" type="Texture" id=2] +[ext_resource path="res://Assets/Sound/coin_sound.wav" type="AudioStream" id=3] [sub_resource type="Animation" id=7] resource_name = "Animate" @@ -85,3 +86,7 @@ script = ExtResource( 1 ) [node name="AnimationPlayer" type="AnimationPlayer" parent="."] anims/Animate = SubResource( 7 ) anims/RESET = SubResource( 8 ) + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 3 ) +volume_db = -5.0 diff --git a/Scenes/Transition.gd b/Scenes/Transition.gd index 9723813..a9f6019 100644 --- a/Scenes/Transition.gd +++ b/Scenes/Transition.gd @@ -38,6 +38,7 @@ func game_over(): $UIController/Explosion.position = pos $UIController/Explosion.show() $UIController/Explosion/AnimationPlayer.play("Explode") + $AudioExplosion.play() yield(get_tree().create_timer(0.1),"timeout") get_node(dices[prev_stage]).hide() yield(get_tree().create_timer(1),"timeout") diff --git a/Scenes/Transition.tscn b/Scenes/Transition.tscn index b909427..aa51821 100644 --- a/Scenes/Transition.tscn +++ b/Scenes/Transition.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=28 format=2] +[gd_scene load_steps=29 format=2] [ext_resource path="res://Assets/transition.png" type="Texture" id=1] [ext_resource path="res://Scenes/CameraControl.gd" type="Script" id=2] @@ -13,6 +13,7 @@ [ext_resource path="res://Assets/5_dots.png" type="Texture" id=11] [ext_resource path="res://Assets/2_dots.png" type="Texture" id=12] [ext_resource path="res://Assets/4_dots.png" type="Texture" id=13] +[ext_resource path="res://Assets/Sound/explosion.wav" type="AudioStream" id=14] [sub_resource type="QuadMesh" id=5] @@ -622,3 +623,7 @@ anims/Explode = SubResource( 17 ) anims/RESET = SubResource( 18 ) [node name="Tween" type="Tween" parent="."] + +[node name="AudioExplosion" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 14 ) +volume_db = -20.0 |