From 3089e01a83493333a80f06e38e28c92efea56ea9 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 17 May 2014 01:40:10 +0200 Subject: [PATCH] Stop music when the game ends --- naja/gameboard.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.34.1