comparison mamba/sprites.py @ 316:cd544a311f11

Move directory names into sound.py for simplicity
author Neil Muller <drnlmuller@gmail.com>
date Fri, 16 Sep 2011 19:13:40 +0200
parents 764247c4047e
children c44821def687
comparison
equal deleted inserted replaced
315:e0a5e597ae66 316:cd544a311f11
288 segment.set_colour(segment.GREEN) 288 segment.set_colour(segment.GREEN)
289 super(FireSprite, self).interact(world, segment) 289 super(FireSprite, self).interact(world, segment)
290 290
291 291
292 class EdibleTile(SingleImageTileSprite): 292 class EdibleTile(SingleImageTileSprite):
293 sound_name = 'sounds/squeak.ogg' 293 sound_name = 'squeak.ogg'
294 294
295 def __init__(self, **kw): 295 def __init__(self, **kw):
296 if self.sound_name: 296 if self.sound_name:
297 load_sound(self.sound_name, self.sound_name) 297 load_sound(self.sound_name, self.sound_name)
298 super(EdibleTile, self).__init__(**kw) 298 super(EdibleTile, self).__init__(**kw)