diff demos/shooter/scripts/ships/player.py @ 475:afde89c1d50b

Switched to a damage system. Collisions with objects now cause 1 damage to the player. When the boss switches weapons it now waits for the weapons firerate value in time to pass before it fires its first burst with the new weapon. Fixed a little problem with the high score dialog as it operates in modal mode. It now waits for the entire frame to be complete before displaying the dialog box.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 21 Apr 2010 18:20:13 +0000
parents 10aff123c62c
children 6b33d80b468b
line wrap: on
line diff
--- a/demos/shooter/scripts/ships/player.py	Wed Apr 21 16:49:59 2010 +0000
+++ b/demos/shooter/scripts/ships/player.py	Wed Apr 21 18:20:13 2010 +0000
@@ -85,6 +85,7 @@
 		
 		else:
 			self._instance.get2dGfxVisual().setVisible(False)
+			self._scene.gameOver()
 		
 	def setInvulnerable(self, milliseconds):
 		#50 is defined in the players "flash" animation file