Mercurial > touhou
diff pytouhou/game/effect.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 | ac2891afb0bb |
children | 1222341ea22c |
line wrap: on
line diff
--- a/pytouhou/game/effect.py +++ b/pytouhou/game/effect.py @@ -20,9 +20,9 @@ from pytouhou.utils.interpolator import class Effect(object): - def __init__(self, pos, index, anm_wrapper): + def __init__(self, pos, index, anm): self.sprite = Sprite() - self.anmrunner = ANMRunner(anm_wrapper, index, self.sprite) + self.anmrunner = ANMRunner(anm, index, self.sprite) self.anmrunner.run_frame() self.removed = False self.objects = [self] @@ -42,8 +42,8 @@ class Effect(object): class Particle(Effect): - def __init__(self, pos, index, anm_wrapper, amp, game, reverse=False, duration=24): - Effect.__init__(self, pos, index, anm_wrapper) + def __init__(self, pos, index, anm, amp, game, reverse=False, duration=24): + Effect.__init__(self, pos, index, anm) self.frame = 0 self.duration = duration