changeset 15:3e566dd214c0

death music
author Lukasz Langa <lukasz@langa.pl>
date Sat, 26 Apr 2014 23:56:01 -0700
parents c46db4de8d20
children 199d98200586
files undermine/death.ogg undermine/game.py
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file undermine/death.ogg has changed
--- a/undermine/game.py	Sat Apr 26 23:42:42 2014 -0700
+++ b/undermine/game.py	Sat Apr 26 23:56:01 2014 -0700
@@ -28,6 +28,7 @@
         self.clock = pygame.time.Clock()
         self.images = undermine.resources.load_atlas('undermine.png', 64)
         self.theme = undermine.resources.load_sound('undermine.ogg')
+        self.eulogy= undermine.resources.load_sound('death.ogg')
         self.make_map(map_size)
 
     def move(self, dx, dy):
@@ -57,6 +58,8 @@
         self.display.back_sprites.add(dirt)
 
     def die(self):
+        self.theme.stop()
+        self.eulogy.play()
         self.hero.animations.append(self.hero.death_anim())
 
     def make_map(self, map_size):