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
@@ -31,6 +31,7 @@ public partial class Player : Node2D {
|
||||
|
||||
if (Input.IsKeyPressed((Key)Key.Space) && Pos.Y >= 976) {
|
||||
VelocityY = Globals.JumpHeight;
|
||||
GetNode<AudioStreamPlayer>("JumpSoundPlayer").Play();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user