Stop music when the game ends
authorNeil <neil@dip.sun.ac.za>
Fri, 16 May 2014 23:40:10 +0000 (01:40 +0200)
committerNeil <neil@dip.sun.ac.za>
Fri, 16 May 2014 23:41:19 +0000 (01:41 +0200)
naja/gameboard.py

index 74abc12e5e82d763faf8f7dfb20df36745356fd4..da7dbd2c8b2a5614a90888c73dc5535ae721bade 100644 (file)
@@ -6,6 +6,7 @@ from naja.constants import(
 from naja.options import options
 from naja.player import Player
 from naja import actions
+from naja.sound import sound
 
 
 class GameBoard(object):
@@ -209,6 +210,7 @@ class GameBoard(object):
         from naja.events import SceneChangeEvent
         from naja.scenes.lose import LoseScene
         from naja.scenes.win import WinScene
+        sound.stop()
         if win:
             SceneChangeEvent.post(WinScene)
         else: