comparison pytouhou/games/eosd.py @ 384:690b5faaa0e6

Make rendering of multiple-sprites elements work like single-sprites.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 02 Oct 2012 13:27:05 +0200
parents e0e284fcb288
children e1f5dcd4b83e
comparison
equal deleted inserted replaced
383:0537af9125a7 384:690b5faaa0e6
241 self.orb_dy_interpolator = Interpolator((-32,), self._game.frame, 241 self.orb_dy_interpolator = Interpolator((-32,), self._game.frame,
242 (0,), self._game.frame + 8) 242 (0,), self._game.frame + 8)
243 self.state.focused = False 243 self.state.focused = False
244 244
245 245
246 @property
246 def objects(self): 247 def objects(self):
247 return self.orbs if self.state.power >= 8 else [] 248 return [self] + (self.orbs if self.state.power >= 8 else [])
248 249
249 250
250 def update(self, keystate): 251 def update(self, keystate):
251 Player.update(self, keystate) 252 Player.update(self, keystate)
252 253