From: Neil Date: Fri, 16 May 2014 23:40:10 +0000 (+0200) Subject: Stop music when the game ends X-Git-Tag: 0.1~145 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=3089e01a83493333a80f06e38e28c92efea56ea9;p=naja.git Stop music when the game ends --- diff --git a/naja/gameboard.py b/naja/gameboard.py index 74abc12..da7dbd2 100644 --- a/naja/gameboard.py +++ b/naja/gameboard.py @@ -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: