comparison pytouhou/game/background.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 e35bef07290d
comparison
equal deleted inserted replaced
432:d4874ebaa06e 433:1222341ea22c
52 for obj in self.stage.models: 52 for obj in self.stage.models:
53 quads = [] 53 quads = []
54 for script_index, ox, oy, oz, width_override, height_override in obj.quads: 54 for script_index, ox, oy, oz, width_override, height_override in obj.quads:
55 sprite = Sprite(width_override, height_override) 55 sprite = Sprite(width_override, height_override)
56 anm_runner = ANMRunner(self.anm, script_index, sprite) 56 anm_runner = ANMRunner(self.anm, script_index, sprite)
57 anm_runner.run_frame()
58 quads.append((ox, oy, oz, width_override, height_override, sprite)) 57 quads.append((ox, oy, oz, width_override, height_override, sprite))
59 self.anm_runners.append(anm_runner) 58 self.anm_runners.append(anm_runner)
60 self.models.append(quads) 59 self.models.append(quads)
61 60
62 61