Mercurial > fife-parpg
diff demos/shooter/scripts/ships/player.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/ships/player.py Thu May 06 19:34:21 2010 +0000 +++ b/demos/shooter/scripts/ships/player.py Fri May 07 21:07:27 2010 +0000 @@ -24,7 +24,7 @@ from fife import fife from scripts.common.baseobject import * from scripts.ships.shipbase import * -from scripts.common.helpers import * +from fife.extensions.fife_math import * from scripts.weapons import * @@ -112,7 +112,7 @@ def destroy(self): if not self._invulnerable and not self._dead: self._instance.act('explode', self._instance.getFacingLocation()) - self._scene.soundmanager.playClip(self._explodclip) + self._explodclip.play() self._dead = True self._invulnerable = True self._lives -= 1