prevent sound by stopping the mixer in the launcher update method

This commit is contained in:
ohsqueezy 2023-02-20 22:12:11 -05:00
parent 9bb52e6f09
commit 07e59c6ca1
1 changed files with 3 additions and 0 deletions

View File

@ -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()