fix:update music could not play in PAIA Desktop
This commit is contained in:
BIN
asset/music/bgm.mp3
Normal file
BIN
asset/music/bgm.mp3
Normal file
Binary file not shown.
Binary file not shown.
@ -20,7 +20,7 @@ class SoundController():
|
||||
def load_sounds(self):
|
||||
try:
|
||||
pygame.mixer.init()
|
||||
pygame.mixer.music.load(path.join(MUSIC_PATH, "bgm.wav"))
|
||||
pygame.mixer.music.load(path.join(MUSIC_PATH, "bgm.mp3"))
|
||||
pygame.mixer.music.set_volume(0.6)
|
||||
self._eating_good = pygame.mixer.Sound(path.join(SOUND_PATH, "eat_good_food.mp3"))
|
||||
self._eating_bad = pygame.mixer.Sound(path.join(SOUND_PATH, "eat_bad_food.mp3"))
|
||||
|
Reference in New Issue
Block a user