Mercurial > fife-parpg
diff demos/shooter/scripts/scene.py @ 492:16ceb3228324
Moved the SoundManager and the 2D math function (helpers) from the shooter demo to the fife extensions.
Fixed fife_timer as it didn't work in the first place. Modified the SoundManager to use the now working fife_timer and removed the Timer class from the shooter demo entirely
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 07 May 2010 21:07:27 +0000 |
parents | c4168eb47a44 |
children | e241d7553496 |
line wrap: on
line diff
--- a/demos/shooter/scripts/scene.py Thu May 06 19:34:21 2010 +0000 +++ b/demos/shooter/scripts/scene.py Fri May 07 21:07:27 2010 +0000 @@ -26,7 +26,7 @@ from scripts.ships.player import Player from scripts.ships.enemies import * from scripts.powerups import * -from scripts.common.helpers import Rect +from fife.extensions.fife_math import Rect class SceneNode(object): """ @@ -209,7 +209,7 @@ #and finally add the player to the scene self.addObjectToScene(self._player) - self._music = self._soundmanager.loadSoundClip("music/waynesmind2.ogg") + self._music = self._soundmanager.createSoundEmitter("music/waynesmind2.ogg") self._music.callback = self.musicHasFinished self._music.looping = True self._soundmanager.playClip(self._music)