Mercurial > nagslang
changeset 272:933c2f9371ca
Stop music when the level ends.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Thu, 05 Sep 2013 01:16:40 +0200 |
parents | 4d97e617ab83 |
children | 62a9ff475598 |
files | nagslang/screens/area.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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)