diff nagslang/screens/area.py @ 272:933c2f9371ca

Stop music when the level ends.
author Simon Cross <hodgestar@gmail.com>
date Thu, 05 Sep 2013 01:16:40 +0200
parents 9fcdb106424a
children 3153196517fc
line wrap: on
line diff
--- a/nagslang/screens/area.py	Thu Sep 05 01:07:42 2013 +0200
+++ b/nagslang/screens/area.py	Thu Sep 05 01:16:40 2013 +0200
@@ -84,6 +84,9 @@
         self.add_game_objects()
         sound.play_music("POL-cyber-factory-short.ogg")
 
+    def teardown(self):
+        sound.stop()
+
     def _collision_pre_solve_handler(self, space, arbiter):
         gobj = arbiter.shapes[1].physicser.game_object
         result = gobj.collide_with_protagonist(self.protagonist)