Mercurial > fife-parpg
diff demos/shooter/scripts/powerups.py @ 489:0324a3533988
Updated the Shooter demo credits.txt file and added the LICENSE file for all media included in the demo.
Cleaned up some print statements in the shooter demo.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 05 May 2010 14:29:37 +0000 |
parents | 82d44c471959 |
children | c4168eb47a44 |
line wrap: on
line diff
--- a/demos/shooter/scripts/powerups.py Tue May 04 12:50:09 2010 +0000 +++ b/demos/shooter/scripts/powerups.py Wed May 05 14:29:37 2010 +0000 @@ -77,9 +77,12 @@ class ExtraLifePU(PowerUp): def __init__(self, scene, powerupName, instance, findInstance=True): super(ExtraLifePU, self).__init__(scene, powerupName, instance, findInstance) + + self._pickupclip = self._scene.soundmanager.loadSoundClip("sounds/pickup.ogg") def applyPowerUp(self, ship): ship.lives += 1 + self._scene.soundmanager.playClip(self._pickupclip) self.destroy() self._scene.queueObjectForRemoval(self) \ No newline at end of file