prevent sound by stopping the mixer in the launcher update method
This commit is contained in:
parent
9bb52e6f09
commit
07e59c6ca1
|
@ -132,6 +132,9 @@ class Playzing(pgfw.Game):
|
|||
def update(self):
|
||||
pgfw.Animation.update(self)
|
||||
|
||||
# Temporary fix: this stops audio when the game is quit and prevents spawning multiple BGM when game is relaunched
|
||||
pygame.mixer.stop()
|
||||
|
||||
# Erase the center of the screen if enabled
|
||||
if not self.configuration.get("logo", "trail"):
|
||||
erase_rect = self.logo_text.location.copy()
|
||||
|
|
Loading…
Reference in New Issue