comparison demos/shooter/scripts/scene.py @ 487:7f1c42b66aa4

Moved the shooter demo Timer() class to helpers.py. Changed the formula that calculates the length of the audio clip to be correct. The shooter demo now demonstrates the use of the audio clip callbacks correctly. Fixed the fife_timer extension to actually work.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 03 May 2010 19:58:16 +0000
parents d365eb58f3d6
children 0324a3533988
comparison
equal deleted inserted replaced
486:2aaa22475acd 487:7f1c42b66aa4
183 self._soundmanager.playClip(self._music) 183 self._soundmanager.playClip(self._music)
184 184
185 self.startCamera() 185 self.startCamera()
186 186
187 def musicHasFinished(self): 187 def musicHasFinished(self):
188 print self._music.name + " has finished playing.\n" 188 print self._music.name + " has finished playing. Starting it again...\n"
189 189
190 def pause(self, time): 190 def pause(self, time):
191 self._pausedtime = time 191 self._pausedtime = time
192 self._paused = True 192 self._paused = True
193 193