Mercurial > fife-parpg
comparison demos/shooter/scripts/ships/enemies.py @ 462:c4f745a566d6
Added player ship animations including flash and explode.
Removed the old flashing routine.
The player now gets moved to the left side of the screen after dying and is invulnerable for a short period of time.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 12 Apr 2010 19:01:41 +0000 |
parents | 5e1d6e40d19d |
children | ac0f62a07a3e |
comparison
equal
deleted
inserted
replaced
461:f87f686b5b59 | 462:c4f745a566d6 |
---|---|
20 # Free Software Foundation, Inc., | 20 # Free Software Foundation, Inc., |
21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
22 # #################################################################### | 22 # #################################################################### |
23 | 23 |
24 from fife import fife | 24 from fife import fife |
25 from scripts.ships.shipbase import Ship | 25 from scripts.ships.shipbase import * |
26 from scripts.common.helpers import Rect | 26 from scripts.common.helpers import Rect |
27 from scripts.weapons import * | 27 from scripts.weapons import * |
28 | 28 |
29 | |
30 class EnemyActionListener(ShipActionListener): | |
31 def __init__(self, ship): | |
32 super(PlayerActionListener, self).__init__(ship) | |
33 | |
34 def onInstanceActionFinished(self, instance, action): | |
35 pass | |
29 | 36 |
30 class Saucer1(Ship): | 37 class Saucer1(Ship): |
31 def __init__(self, scene, name, findInstance=True): | 38 def __init__(self, scene, name, findInstance=True): |
32 super(Saucer1, self).__init__(scene, name, findInstance) | 39 super(Saucer1, self).__init__(scene, name, findInstance) |
33 self._dir = 0 | 40 self._dir = 0 |