Added a jump sound effect
I also added all of the files for berry sound effects but those arent implemented yet.
This commit is contained in:
1 parent
feb8492dd9
commit
4940701e48
12 files changed
+101
-1
No files matched your search
Binary file not shown.
@@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
uid="uid://b6vg6slkdg5l3"
|
||||||
|
path="res://.godot/imported/Death.mp3-484acbd7cd162474491b5465f12e04b8.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Audio/SFX/Death.mp3"
|
||||||
|
dest_files=["res://.godot/imported/Death.mp3-484acbd7cd162474491b5465f12e04b8.mp3str"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
||||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
uid="uid://i8mc8681j6p1"
|
||||||
|
path="res://.godot/imported/Downgrade.mp3-70d446425f2d77cd355d2a77e60e892d.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Audio/SFX/Downgrade.mp3"
|
||||||
|
dest_files=["res://.godot/imported/Downgrade.mp3-70d446425f2d77cd355d2a77e60e892d.mp3str"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
||||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
uid="uid://bx47r843pbymd"
|
||||||
|
path="res://.godot/imported/Eat.mp3-444484b8a92f36611727adb54004e211.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Audio/SFX/Eat.mp3"
|
||||||
|
dest_files=["res://.godot/imported/Eat.mp3-444484b8a92f36611727adb54004e211.mp3str"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
||||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
uid="uid://7ahbsuq3jt4v"
|
||||||
|
path="res://.godot/imported/Jump.mp3-a19bc3a730e85a868943f0c42c4fd1f4.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Audio/SFX/Jump.mp3"
|
||||||
|
dest_files=["res://.godot/imported/Jump.mp3-a19bc3a730e85a868943f0c42c4fd1f4.mp3str"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
||||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
uid="uid://cjsm81cu4rsk8"
|
||||||
|
path="res://.godot/imported/Powerup.mp3-1e1d4ad8a5bd25117e18e68e79b16474.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Audio/SFX/Powerup.mp3"
|
||||||
|
dest_files=["res://.godot/imported/Powerup.mp3-1e1d4ad8a5bd25117e18e68e79b16474.mp3str"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
||||||
+5
-1
@@ -1,10 +1,11 @@
|
|||||||
[gd_scene load_steps=16 format=3 uid="uid://bgt46l5p8qrwc"]
|
[gd_scene load_steps=17 format=3 uid="uid://bgt46l5p8qrwc"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://dfv3cmvcskd6t" path="res://Scripts/Player.cs" id="1_gl6un"]
|
[ext_resource type="Script" uid="uid://dfv3cmvcskd6t" path="res://Scripts/Player.cs" id="1_gl6un"]
|
||||||
[ext_resource type="Texture2D" uid="uid://5ecdlqnn0u6g" path="res://Textures/Icons/Bird1.png" id="1_iukft"]
|
[ext_resource type="Texture2D" uid="uid://5ecdlqnn0u6g" path="res://Textures/Icons/Bird1.png" id="1_iukft"]
|
||||||
[ext_resource type="Script" uid="uid://bdwdadvx0axam" path="res://Scripts/Berries.cs" id="1_kldst"]
|
[ext_resource type="Script" uid="uid://bdwdadvx0axam" path="res://Scripts/Berries.cs" id="1_kldst"]
|
||||||
[ext_resource type="Script" uid="uid://drbmu7lilwrec" path="res://Scripts/ScoreText.cs" id="4_b2bpf"]
|
[ext_resource type="Script" uid="uid://drbmu7lilwrec" path="res://Scripts/ScoreText.cs" id="4_b2bpf"]
|
||||||
[ext_resource type="FontFile" uid="uid://dq7nkk7n7wrq4" path="res://Fonts/Lexend.ttf" id="4_kldst"]
|
[ext_resource type="FontFile" uid="uid://dq7nkk7n7wrq4" path="res://Fonts/Lexend.ttf" id="4_kldst"]
|
||||||
|
[ext_resource type="AudioStream" uid="uid://7ahbsuq3jt4v" path="res://Audio/SFX/Jump.mp3" id="4_wxwew"]
|
||||||
[ext_resource type="AudioStream" uid="uid://cryo6mtltnnyk" path="res://Audio/Music/Game/PixelPeekerPolka.mp3" id="6_fgofq"]
|
[ext_resource type="AudioStream" uid="uid://cryo6mtltnnyk" path="res://Audio/Music/Game/PixelPeekerPolka.mp3" id="6_fgofq"]
|
||||||
[ext_resource type="AudioStream" uid="uid://btl7lrqmikaro" path="res://Audio/Music/Game/FluffingADuck.mp3" id="7_2irst"]
|
[ext_resource type="AudioStream" uid="uid://btl7lrqmikaro" path="res://Audio/Music/Game/FluffingADuck.mp3" id="7_2irst"]
|
||||||
[ext_resource type="AudioStream" uid="uid://js133askfgfd" path="res://Audio/Music/Game/AmazingPlan.mp3" id="8_3cx6b"]
|
[ext_resource type="AudioStream" uid="uid://js133askfgfd" path="res://Audio/Music/Game/AmazingPlan.mp3" id="8_3cx6b"]
|
||||||
@@ -53,6 +54,9 @@ position = Vector2(-5, 23)
|
|||||||
shape = SubResource("CircleShape2D_j5yw3")
|
shape = SubResource("CircleShape2D_j5yw3")
|
||||||
debug_color = Color(1, 1, 1, 0.188235)
|
debug_color = Color(1, 1, 1, 0.188235)
|
||||||
|
|
||||||
|
[node name="JumpSoundPlayer" type="AudioStreamPlayer" parent="Player"]
|
||||||
|
stream = ExtResource("4_wxwew")
|
||||||
|
|
||||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||||
|
|
||||||
[node name="ScoreText" type="Control" parent="CanvasLayer"]
|
[node name="ScoreText" type="Control" parent="CanvasLayer"]
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public partial class Player : Node2D {
|
|||||||
|
|
||||||
if (Input.IsKeyPressed((Key)Key.Space) && Pos.Y >= 976) {
|
if (Input.IsKeyPressed((Key)Key.Space) && Pos.Y >= 976) {
|
||||||
VelocityY = Globals.JumpHeight;
|
VelocityY = Globals.JumpHeight;
|
||||||
|
GetNode<AudioStreamPlayer>("JumpSoundPlayer").Play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user