Mercurial > fife-parpg
comparison demos/shooter/scripts/ships/shipbase.py @ 460:5e1d6e40d19d
Fixed bounding boxes.
Added bounding box renderer.
The player is now better confined to the screen.
Added more enemies to the map.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 09 Apr 2010 21:42:28 +0000 |
parents | 302a69c5141d |
children | f87f686b5b59 |
comparison
equal
deleted
inserted
replaced
459:302a69c5141d | 460:5e1d6e40d19d |
---|---|
60 """ | 60 """ |
61 self._flashing = True | 61 self._flashing = True |
62 self._flashrate = rate * 2 | 62 self._flashrate = rate * 2 |
63 self._flashnumber = number * 2 | 63 self._flashnumber = number * 2 |
64 | 64 |
65 def destroy(self): | |
66 self._scene.removeObjectFromScene(self) | |
67 super(Ship, self).destroy() | |
65 | 68 |
66 def update(self): | 69 def update(self): |
67 if self._flashing: | 70 if self._flashing: |
68 if self._flashnumber <= 0: | 71 if self._flashnumber <= 0: |
69 self._flashing = False | 72 self._flashing = False |