]> Skullheadx's Git Forge - Pygame-Jam.git/commitdiff
volume readjust
author711215 <711215@pdsb.net>
Wed, 13 Jul 2022 19:38:27 +0000 (15:38 -0400)
committer711215 <711215@pdsb.net>
Wed, 13 Jul 2022 19:38:27 +0000 (15:38 -0400)
Game.py
Player.py

diff --git a/Game.py b/Game.py
index 8523f6db468d42e0985fdad3e1490e148fc38d99..b534e36d7f5e130ce6fb14cababa60843106f01a 100644 (file)
--- 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"])
index e12e4784fca760906a35be7330716a3b45281258..816559e712b447e3b1638145590eaff134da66de 100644 (file)
--- 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)