Stopped music when exiting the level
This commit is contained in:
parent
20142780d2
commit
1751baf2db
File diff suppressed because it is too large
Load Diff
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user