From: 711215 <711215@pdsb.net> Date: Wed, 13 Jul 2022 18:49:54 +0000 (-0400) Subject: potion sfx + bugfix X-Git-Url: http://git.skullheadx.com/projects/suckless.html?a=commitdiff_plain;h=765a01ff942534fa731dc3c4955ffea719bb17ef;p=Pygame-Jam.git potion sfx + bugfix --- diff --git a/Assets/Music/Credits.txt b/Assets/Music/Credits.txt index 4be39f0..ea80edc 100644 --- a/Assets/Music/Credits.txt +++ b/Assets/Music/Credits.txt @@ -2,4 +2,12 @@ Main Menu Music - 'Pirates Of The Quarantine' by Alexander Nakarada Sky Music - 'Adrift' by Hayden Folker Overworld Music - 'Spirit' by Alex Productions Cave Music - 'Don't Die On Me' by @Myuu -Combat Music - 'Explorer' by Alexander Nakarada \ No newline at end of file +Combat Music - 'Explorer' by Alexander Nakarada + +Potion SFX - Jochi SFX (https://www.youtube.com/watch?v=5eiVPlE8l14) +Player Grunt - LT Sound Effects (https://www.youtube.com/watch?v=Zefbs_qvP_s) +Goon Grunt - Sounds (https://www.youtube.com/watch?v=kgJX1I7DwKc) +Skeleton Sound - Cribbler (https://freesound.org/people/cribbler/sounds/381859/) +Landing SFX - Gaming Sound Effects Library (https://www.youtube.com/watch?v=0ZoNxpX1bpY) +Swing SFX - SOUND and IMAGE FX (https://www.youtube.com/watch?v=Psn_Mvmqua0) +Walking Sound - Sound Library (https://www.youtube.com/watch?v=cXHvtvjRq_M) \ No newline at end of file diff --git a/Assets/SFX/Potion Drink.wav b/Assets/SFX/Potion Drink.wav new file mode 100644 index 0000000..9fdbc08 Binary files /dev/null and b/Assets/SFX/Potion Drink.wav differ diff --git a/Game.py b/Game.py index b09cbda..003d166 100644 --- a/Game.py +++ b/Game.py @@ -132,6 +132,7 @@ class Game: pass elif self.player.dead: self.level = self.scene.level + pg.mixer.stop() pass; else: Setup.camera_offset = self.player.update(delta) diff --git a/Player.py b/Player.py index 06b4bd6..5a99d49 100644 --- a/Player.py +++ b/Player.py @@ -37,6 +37,7 @@ class Player(Actor): sword_swing_channel = pg.mixer.Channel(2) landing_sound = pg.mixer.Sound("Assets/SFX/Jump_Landing.wav") landing_sound_channel = pg.mixer.Channel(3) + potion_drink_sound = pg.mixer.Sound("Assets/SFX/Potion Drink.wav") # Enemy SFX grunt_sound = pg.mixer.Sound("Assets/SFX/Grunt Sound.wav") skeleton_damaged_sound = pg.mixer.Sound("Assets/SFX/Skeleton_Damaged.wav") diff --git a/Potion.py b/Potion.py index c3131cc..f63d6ef 100644 --- a/Potion.py +++ b/Potion.py @@ -13,6 +13,7 @@ class Potion: self.consume_potion(player) def consume_potion(self, player): + pg.mixer.Sound.play(player.potion_drink_sound) player.health += self.heal if player.health > 100: player.health = 100