Mercurial > fife-parpg
comparison 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 |
comparison
equal
deleted
inserted
replaced
461:f87f686b5b59 | 462:c4f745a566d6 |
---|---|
297 self._hudwindow.setVelocityText(unicode(vel)) | 297 self._hudwindow.setVelocityText(unicode(vel)) |
298 | 298 |
299 score = unicode(str(player.score)) | 299 score = unicode(str(player.score)) |
300 self._hudwindow.setScoreText(score) | 300 self._hudwindow.setScoreText(score) |
301 | 301 |
302 lives = unicode(str(player.lives)) | 302 ilives = player.lives |
303 if ilives < 0: | |
304 ilives = 0 | |
305 lives = unicode(str(ilives)) | |
303 self._hudwindow.setLivesText(lives) | 306 self._hudwindow.setLivesText(lives) |
304 | 307 |
305 else: | 308 else: |
306 if not self.scene.paused: | 309 if not self.scene.paused: |
307 self.scene.pause(self.timemanager.getTime() - self._starttime) | 310 self.scene.pause(self.timemanager.getTime() - self._starttime) |