Mercurial > touhou
comparison pytouhou/vm/anmrunner.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 | d4874ebaa06e |
children | 98995d8ac744 |
comparison
equal
deleted
inserted
replaced
432:d4874ebaa06e | 433:1222341ea22c |
---|---|
54 0., 0., 0., 0., | 54 0., 0., 0., 0., |
55 0, 0, 0, 0] | 55 0, 0, 0, 0] |
56 | 56 |
57 self.sprite_index_offset = sprite_index_offset | 57 self.sprite_index_offset = sprite_index_offset |
58 | 58 |
59 self.run_frame() | |
60 | |
59 | 61 |
60 def interrupt(self, interrupt): | 62 def interrupt(self, interrupt): |
61 new_ip = self.script.interrupts.get(interrupt, None) | 63 new_ip = self.script.interrupts.get(interrupt, None) |
62 if new_ip is None: | 64 if new_ip is None: |
63 new_ip = self.script.interrupts.get(-1, None) | 65 new_ip = self.script.interrupts.get(-1, None) |