comparison demos/shooter/scripts/ships/player.py @ 461:f87f686b5b59

Projectiles from enemy ships no longer destroy other enemies.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 12 Apr 2010 12:21:27 +0000
parents 5e1d6e40d19d
children c4f745a566d6
comparison
equal deleted inserted replaced
460:5e1d6e40d19d 461:f87f686b5b59
40 #give player the default weapon (the cannon) 40 #give player the default weapon (the cannon)
41 self.weapon = Cannon(self._scene, self, 200) 41 self.weapon = Cannon(self._scene, self, 200)
42 42
43 self._lives = 3 43 self._lives = 3
44 self._invulnerable = False 44 self._invulnerable = False
45
46 self._isplayer = True
45 47
46 def init(self): 48 def init(self):
47 self._lives = 3 49 self._lives = 3
48 50
49 def _getScore(self): 51 def _getScore(self):