Mercurial > rinkhals
changeset 156:210fc1ea0516
Stop background music whenever state changes.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Thu, 03 Sep 2009 21:23:34 +0000 |
parents | 3381af605912 |
children | e3572b907028 |
files | gamelib/engine.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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)