Mercurial > fife-parpg
comparison 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 |
comparison
equal
deleted
inserted
replaced
474:10aff123c62c | 475:afde89c1d50b |
---|---|
83 location.setExactLayerCoordinates(playerpos) | 83 location.setExactLayerCoordinates(playerpos) |
84 self.location = location | 84 self.location = location |
85 | 85 |
86 else: | 86 else: |
87 self._instance.get2dGfxVisual().setVisible(False) | 87 self._instance.get2dGfxVisual().setVisible(False) |
88 self._scene.gameOver() | |
88 | 89 |
89 def setInvulnerable(self, milliseconds): | 90 def setInvulnerable(self, milliseconds): |
90 #50 is defined in the players "flash" animation file | 91 #50 is defined in the players "flash" animation file |
91 #2 is the number of frames in the animation | 92 #2 is the number of frames in the animation |
92 #TODO: read these values somehow from the animation | 93 #TODO: read these values somehow from the animation |