Stopped music when exiting the level

This commit is contained in:
theo@manjaro 2021-11-26 15:10:29 +01:00
parent 20142780d2
commit 1751baf2db
2 changed files with 3731 additions and 813 deletions

File diff suppressed because it is too large Load Diff

View File

@ -37,6 +37,8 @@ class Pause(BaseObject):
self.game.gameloop.delid(self.id) self.game.gameloop.delid(self.id)
def quit(self): def quit(self):
tileset = self.game.gameloop.findname("TilesetRenderer")[0]
tileset.bgm.stop()
t = Transition(self.game,time=0.5) t = Transition(self.game,time=0.5)
self.game.gameloop.summon(t) self.game.gameloop.summon(t)
self.ispaused = True self.ispaused = True