diff --git a/Audio/SFX/Death.mp3 b/Audio/SFX/Death.mp3 new file mode 100644 index 0000000..3758080 Binary files /dev/null and b/Audio/SFX/Death.mp3 differ diff --git a/Audio/SFX/Death.mp3.import b/Audio/SFX/Death.mp3.import new file mode 100644 index 0000000..5b2cf9a --- /dev/null +++ b/Audio/SFX/Death.mp3.import @@ -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 diff --git a/Audio/SFX/Downgrade.mp3 b/Audio/SFX/Downgrade.mp3 new file mode 100644 index 0000000..116a6da Binary files /dev/null and b/Audio/SFX/Downgrade.mp3 differ diff --git a/Audio/SFX/Downgrade.mp3.import b/Audio/SFX/Downgrade.mp3.import new file mode 100644 index 0000000..2f504e9 --- /dev/null +++ b/Audio/SFX/Downgrade.mp3.import @@ -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 diff --git a/Audio/SFX/Eat.mp3 b/Audio/SFX/Eat.mp3 new file mode 100644 index 0000000..6d7490d Binary files /dev/null and b/Audio/SFX/Eat.mp3 differ diff --git a/Audio/SFX/Eat.mp3.import b/Audio/SFX/Eat.mp3.import new file mode 100644 index 0000000..ce811ed --- /dev/null +++ b/Audio/SFX/Eat.mp3.import @@ -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 diff --git a/Audio/SFX/Jump.mp3 b/Audio/SFX/Jump.mp3 new file mode 100644 index 0000000..1d47378 Binary files /dev/null and b/Audio/SFX/Jump.mp3 differ diff --git a/Audio/SFX/Jump.mp3.import b/Audio/SFX/Jump.mp3.import new file mode 100644 index 0000000..24f2365 --- /dev/null +++ b/Audio/SFX/Jump.mp3.import @@ -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 diff --git a/Audio/SFX/Powerup.mp3 b/Audio/SFX/Powerup.mp3 new file mode 100644 index 0000000..710ad16 Binary files /dev/null and b/Audio/SFX/Powerup.mp3 differ diff --git a/Audio/SFX/Powerup.mp3.import b/Audio/SFX/Powerup.mp3.import new file mode 100644 index 0000000..fa94002 --- /dev/null +++ b/Audio/SFX/Powerup.mp3.import @@ -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 diff --git a/Scenes/Game.tscn b/Scenes/Game.tscn index 6909d12..fb7baa4 100644 --- a/Scenes/Game.tscn +++ b/Scenes/Game.tscn @@ -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="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://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="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://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"] @@ -53,6 +54,9 @@ position = Vector2(-5, 23) shape = SubResource("CircleShape2D_j5yw3") 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="ScoreText" type="Control" parent="CanvasLayer"] diff --git a/Scripts/Player.cs b/Scripts/Player.cs index 83795ed..65c2bdc 100644 --- a/Scripts/Player.cs +++ b/Scripts/Player.cs @@ -31,6 +31,7 @@ public partial class Player : Node2D { if (Input.IsKeyPressed((Key)Key.Space) && Pos.Y >= 976) { VelocityY = Globals.JumpHeight; + GetNode("JumpSoundPlayer").Play(); } }