diff demos/shooter/scripts/powerups.py @ 483:82d44c471959

Modified the SoundManager to not create unique FIFE sound emitters for each object. There is now only one FIFE emitter per unique sound. Added some sound effects.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 29 Apr 2010 16:09:56 +0000
parents ab28994820dd
children 0324a3533988
line wrap: on
line diff
--- a/demos/shooter/scripts/powerups.py	Thu Apr 29 13:51:45 2010 +0000
+++ b/demos/shooter/scripts/powerups.py	Thu Apr 29 16:09:56 2010 +0000
@@ -47,9 +47,12 @@
 		self._time = 1500
 		self._velocity.x = -0.25
 		self._velocity.y = 0
+		
+		self._pickupclip = self._scene.soundmanager.loadSoundClip("sounds/pickup.ogg")		
 	
 	def applyPowerUp(self, ship):
 		ship.weapon = CannonSpread5(self._scene, ship, 300)
+		self._scene.soundmanager.playClip(self._pickupclip)
 		self.destroy()
 		self._scene.queueObjectForRemoval(self)