fix: address music not playing

This commit is contained in:
Giovani Rodriguez
2021-07-07 21:53:55 -04:00
parent f822a211de
commit 7c4934028e

View File

@@ -51,7 +51,7 @@ class Game:
self.stack = Stack(ConfigurationManager.get("color", "stack-1"), ConfigurationManager.get("color", "stack-border-1"))
self.score = 0
self.main_music.set_volume(0.7) # TODO add volume to the config
self.main_music.play(ConfigurationManager.get("sound", "main-music"), -1)
self.main_music.play(mixer.Sound(ConfigurationManager.get("sound", "main-music")), -1)
# gets called from the games main loop
def update(self) -> None: