Mercurial > touhou
comparison pytouhou/formats/anm0.py @ 402:88e2a2485b2b
Add a version attribute to ANM0 and latest discovered instruction.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 16 Feb 2013 19:31:29 +0100 |
parents | 70e2ed71b09c |
children | 40d5f3083ebc |
comparison
equal
deleted
inserted
replaced
401:3ce4065840e9 | 402:88e2a2485b2b |
---|---|
59 19: ('fffi', 'move_to_decel'), | 59 19: ('fffi', 'move_to_decel'), |
60 20: ('fffi', 'move_to_accel'), | 60 20: ('fffi', 'move_to_accel'), |
61 21: ('', 'wait'), | 61 21: ('', 'wait'), |
62 22: ('i', 'interrupt_label'), | 62 22: ('i', 'interrupt_label'), |
63 23: ('', 'set_corner_relative_placement'), | 63 23: ('', 'set_corner_relative_placement'), |
64 24: ('', None), | 64 24: ('', 'wait_ex'), |
65 25: ('i', 'set_allow_offset'), #TODO: better name | 65 25: ('i', 'set_allow_offset'), #TODO: better name |
66 26: ('i', 'set_automatic_orientation'), | 66 26: ('i', 'set_automatic_orientation'), |
67 27: ('f', 'shift_texture_x'), | 67 27: ('f', 'shift_texture_x'), |
68 28: ('f', 'shift_texture_y'), | 68 28: ('f', 'shift_texture_y'), |
69 29: ('i', 'set_visible'), | 69 29: ('i', 'set_visible'), |
70 30: ('ffi', 'scale_in'), | 70 30: ('ffi', 'scale_in'), |
71 31: ('i', None)} | 71 31: ('i', None)} |
72 | 72 |
73 | 73 |
74 def __init__(self): | 74 def __init__(self): |
75 self.version = 0 | |
75 self.size = (0, 0) | 76 self.size = (0, 0) |
76 self.first_name = None | 77 self.first_name = None |
77 self.secondary_name = None | 78 self.secondary_name = None |
78 self.sprites = {} | 79 self.sprites = {} |
79 self.scripts = {} | 80 self.scripts = {} |
143 interrupt = args[0] | 144 interrupt = args[0] |
144 self.scripts[i].interrupts[interrupt] = j + 1 | 145 self.scripts[i].interrupts[interrupt] = j + 1 |
145 self.scripts[i][j] = time, opcode, args | 146 self.scripts[i][j] = time, opcode, args |
146 | 147 |
147 return self | 148 return self |
148 |