Mercurial > touhou
comparison pytouhou/games/eosd.py @ 471:06f0eeb519bb
Make Laser and Orb extension types, and use that where possible.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 16 Sep 2013 18:42:04 +0200 |
parents | 98995d8ac744 |
children | 711c75115675 |
comparison
equal
deleted
inserted
replaced
470:98995d8ac744 | 471:06f0eeb519bb |
---|---|
273 self.focused_sht = character[1] | 273 self.focused_sht = character[1] |
274 self.anm = resource_loader.get_single_anm('player0%d.anm' % (state.character // 2)) | 274 self.anm = resource_loader.get_single_anm('player0%d.anm' % (state.character // 2)) |
275 | 275 |
276 Player.__init__(self, state, game, self.anm) | 276 Player.__init__(self, state, game, self.anm) |
277 | 277 |
278 self.orbs = [Orb(self.anm, 128, self.state, None), | 278 self.orbs = [Orb(self.anm, 128, self.state), |
279 Orb(self.anm, 129, self.state, None)] | 279 Orb(self.anm, 129, self.state)] |
280 | 280 |
281 self.orbs[0].offset_x = -24 | 281 self.orbs[0].offset_x = -24 |
282 self.orbs[1].offset_x = 24 | 282 self.orbs[1].offset_x = 24 |
283 | 283 |
284 self.orb_dx_interpolator = None | 284 self.orb_dx_interpolator = None |