comparison pytouhou/vm/anmrunner.py @ 470:98995d8ac744

Reset ANMRunner.sprite_index_offset after the first frame, fixes bullettype 7; also forbid glitch bullet types.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 16 Sep 2013 18:41:51 +0200
parents 1222341ea22c
children 59bd29568753
comparison
equal deleted inserted replaced
469:58b47e788c59 470:98995d8ac744
53 self.variables = [0, 0, 0, 0, 53 self.variables = [0, 0, 0, 0,
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
59 self.run_frame() 58 self.run_frame()
59 self.sprite_index_offset = 0
60 60
61 61
62 def interrupt(self, interrupt): 62 def interrupt(self, interrupt):
63 new_ip = self.script.interrupts.get(interrupt, None) 63 new_ip = self.script.interrupts.get(interrupt, None)
64 if new_ip is None: 64 if new_ip is None: