diff 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
line wrap: on
line diff
--- a/demos/shooter/scripts/ships/enemies.py	Mon Apr 12 12:21:27 2010 +0000
+++ b/demos/shooter/scripts/ships/enemies.py	Mon Apr 12 19:01:41 2010 +0000
@@ -22,11 +22,18 @@
 # ####################################################################
 
 from fife import fife
-from scripts.ships.shipbase import Ship
+from scripts.ships.shipbase import *
 from scripts.common.helpers import Rect
 from scripts.weapons import *
 
 
+class EnemyActionListener(ShipActionListener):
+	def __init__(self, ship):
+		super(PlayerActionListener, self).__init__(ship)
+
+	def onInstanceActionFinished(self, instance, action):
+		pass
+
 class Saucer1(Ship):
 	def __init__(self, scene, name, findInstance=True):
 		super(Saucer1, self).__init__(scene, name, findInstance)