Mercurial > fife-parpg
diff demos/shooter/scripts/common/baseobject.py @ 479:ab28994820dd
Added some powerups including a spread weapon and an extra life.
Fixed the problem where the player could fly off the screen.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 23 Apr 2010 17:17:02 +0000 |
parents | 6b33d80b468b |
children | c4168eb47a44 |
line wrap: on
line diff
--- a/demos/shooter/scripts/common/baseobject.py Thu Apr 22 21:04:13 2010 +0000 +++ b/demos/shooter/scripts/common/baseobject.py Fri Apr 23 17:17:02 2010 +0000 @@ -31,6 +31,7 @@ SHTR_LASTBOSS = 2 SHTR_PROJECTILE = 3 SHTR_ENEMYSHIP = 4 +SHTR_POWERUP = 5 class SpaceObject(object): @@ -143,6 +144,8 @@ def _setInstance(self, instance): self._instance = instance + if self._instance: + self._instance.thisown = 0 def _getVelocity(self): return self._velocity