diff demos/shooter/scripts/world.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 be035dff788a
line wrap: on
line diff
--- a/demos/shooter/scripts/world.py	Mon Apr 12 12:21:27 2010 +0000
+++ b/demos/shooter/scripts/world.py	Mon Apr 12 19:01:41 2010 +0000
@@ -299,7 +299,10 @@
 			score = unicode(str(player.score))
 			self._hudwindow.setScoreText(score)
 			
-			lives = unicode(str(player.lives))
+			ilives = player.lives
+			if ilives < 0:
+				ilives = 0
+			lives = unicode(str(ilives))
 			self._hudwindow.setLivesText(lives)
 			
 		else: