projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60f0a7d
)
Stop music when the game ends
author
Neil
<neil@dip.sun.ac.za>
Fri, 16 May 2014 23:40:10 +0000
(
01:40
+0200)
committer
Neil
<neil@dip.sun.ac.za>
Fri, 16 May 2014 23:41:19 +0000
(
01:41
+0200)
naja/gameboard.py
patch
|
blob
|
history
diff --git
a/naja/gameboard.py
b/naja/gameboard.py
index 74abc12e5e82d763faf8f7dfb20df36745356fd4..da7dbd2c8b2a5614a90888c73dc5535ae721bade 100644
(file)
--- 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: