Mercurial > touhou
comparison pytouhou/game/orb.py @ 430:c9433188ffdb
Remove AnmWrapper, since ANMs are lists of entries now.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 03 Aug 2013 15:49:04 +0200 |
parents | f3099ebf4f61 |
children | 1222341ea22c |
comparison
equal
deleted
inserted
replaced
429:40d5f3083ebc | 430:c9433188ffdb |
---|---|
19 | 19 |
20 class Orb(object): | 20 class Orb(object): |
21 __slots__ = ('sprite', 'anmrunner', 'offset_x', 'offset_y', 'player_state', | 21 __slots__ = ('sprite', 'anmrunner', 'offset_x', 'offset_y', 'player_state', |
22 'fire') | 22 'fire') |
23 | 23 |
24 def __init__(self, anm_wrapper, index, player_state, fire_func): | 24 def __init__(self, anm, index, player_state, fire_func): |
25 self.sprite = Sprite() | 25 self.sprite = Sprite() |
26 self.anmrunner = ANMRunner(anm_wrapper, index, self.sprite) | 26 self.anmrunner = ANMRunner(anm, index, self.sprite) |
27 self.anmrunner.run_frame() | 27 self.anmrunner.run_frame() |
28 | 28 |
29 self.offset_x = 0 | 29 self.offset_x = 0 |
30 self.offset_y = 0 | 30 self.offset_y = 0 |
31 | 31 |