comparison pytouhou/game/enemy.py @ 156:ebfd328e700c

Rename a few functions, move a few things around...
author Thibaut Girka <thib@sitedethib.com>
date Mon, 10 Oct 2011 18:34:36 +0200
parents 364935f6e313
children 7769ce7be03c
comparison
equal deleted inserted replaced
155:ed86bec43b93 156:ebfd328e700c
145 self._sprite = Sprite() 145 self._sprite = Sprite()
146 self._anmrunner = ANMRunner(self._anm_wrapper, index, self._sprite) 146 self._anmrunner = ANMRunner(self._anm_wrapper, index, self._sprite)
147 self._anmrunner.run_frame() 147 self._anmrunner.run_frame()
148 148
149 149
150 def collide(self, player): 150 def collide(self):
151 if self.touchable: 151 #TODO: animation
152 #TODO: animation 152 #TODO: doesn’t always kill herself (a boss for example), search how
153 #TODO: doesn’t always kill herself (a boss for example), search how 153 self._removed = True
154 self._removed = True
155 player.die()
156 154
157 155
158 def killed(self): 156 def killed(self):
159 if self.touchable: 157 if self.touchable:
160 if 0 <= self._bonus_dropped < 256: 158 if 0 <= self._bonus_dropped < 256: