From: 711215 <711215@pdsb.net> Date: Wed, 13 Jul 2022 19:38:27 +0000 (-0400) Subject: volume readjust X-Git-Url: http://git.skullheadx.com/nixos/README?a=commitdiff_plain;h=5218eeb4e285cd1e4a41cd652f621783f3196b5f;p=Pygame-Jam.git volume readjust --- diff --git a/Game.py b/Game.py index 8523f6d..b534e36 100644 --- a/Game.py +++ b/Game.py @@ -127,6 +127,8 @@ class Game: pg.mixer.music.load("Assets/Music/Overworld_Music.ogg") pg.mixer.music.play(-1) + pg.mixer.music.set_volume(0.5) + except: pass; # self.test = RangedAttack((1650,1250),self.collision_layer["world"], self.collision_layer["arrow"]) diff --git a/Player.py b/Player.py index e12e478..816559e 100644 --- a/Player.py +++ b/Player.py @@ -38,12 +38,21 @@ class Player(Actor): 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") + + running_sound.set_volume(0.5) + sword_swing_sound.set_volume(0.5) + landing_sound.set_volume(0.5) + potion_drink_sound.set_volume(0.25) # Enemy SFX grunt_sound = pg.mixer.Sound("Assets/SFX/Grunt Sound.wav") skeleton_damaged_sound = pg.mixer.Sound("Assets/SFX/Skeleton_Damaged.wav") player_grunt = pg.mixer.Sound("Assets/SFX/Player Grunt.wav") player_grunt_channel = pg.mixer.Channel(4) + grunt_sound.set_volume(0.5) + skeleton_damaged_sound.set_volume(0.5) + player_grunt.set_volume(0.5) + width, height = idle_frames[0].get_size() colour = (52, 94, 235)