Mercurial > touhou
comparison pytouhou/game/orb.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 |
---|---|
22 'fire') | 22 'fire') |
23 | 23 |
24 def __init__(self, anm, 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, index, self.sprite) | 26 self.anmrunner = ANMRunner(anm, index, self.sprite) |
27 self.anmrunner.run_frame() | |
28 | 27 |
29 self.offset_x = 0 | 28 self.offset_x = 0 |
30 self.offset_y = 0 | 29 self.offset_y = 0 |
31 | 30 |
32 self.player_state = player_state | 31 self.player_state = player_state |