Mercurial > rinkhals
diff gamelib/engine.py @ 156:210fc1ea0516
Stop background music whenever state changes.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Thu, 03 Sep 2009 21:23:34 +0000 |
parents | 082868bea873 |
children | fa57868123d7 |
line wrap: on
line diff
--- a/gamelib/engine.py Thu Sep 03 21:15:04 2009 +0000 +++ b/gamelib/engine.py Thu Sep 03 21:23:34 2009 +0000 @@ -44,6 +44,7 @@ class MainMenuState(State): def init(self): + sound.stop_background_music() self.game.set_main_menu() def event(self, e): @@ -155,6 +156,7 @@ class GameOver(State): def init(self): """Setup everything""" + sound.stop_background_music() self.game.create_game_over() pygame.time.set_timer(MOVE_FOX_ID, 0)