comparison pytouhou/game/effect.py @ 433:1222341ea22c

Always run the first frame of an ANMRunner.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 11 Aug 2013 14:23:50 +0200
parents c9433188ffdb
children b9d2db93972f
comparison
equal deleted inserted replaced
432:d4874ebaa06e 433:1222341ea22c
21 21
22 class Effect(object): 22 class Effect(object):
23 def __init__(self, pos, index, anm): 23 def __init__(self, pos, index, anm):
24 self.sprite = Sprite() 24 self.sprite = Sprite()
25 self.anmrunner = ANMRunner(anm, index, self.sprite) 25 self.anmrunner = ANMRunner(anm, index, self.sprite)
26 self.anmrunner.run_frame()
27 self.removed = False 26 self.removed = False
28 self.objects = [self] 27 self.objects = [self]
29 28
30 self.x, self.y = pos 29 self.x, self.y = pos
31 30