Mercurial > touhou
comparison pytouhou/formats/anm0.py @ 41:93c8dc2de923
Add (hopefully) "texture shifting" in animations
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 15 Aug 2011 00:41:51 +0200 |
parents | cb5b27011044 |
children | ab826bc29aa2 |
comparison
equal
deleted
inserted
replaced
40:ce662b372ee0 | 41:93c8dc2de923 |
---|---|
70 args = (instruction_offsets.index(unpack('<I', data)[0]),) | 70 args = (instruction_offsets.index(unpack('<I', data)[0]),) |
71 elif instr_type == 9: # set_3d_rotation | 71 elif instr_type == 9: # set_3d_rotation |
72 args = unpack('<fff', data) | 72 args = unpack('<fff', data) |
73 elif instr_type == 10: # set_3d_rotation_speed | 73 elif instr_type == 10: # set_3d_rotation_speed |
74 args = unpack('<fff', data) | 74 args = unpack('<fff', data) |
75 elif instr_type == 27: # shift_texture_x | |
76 args = unpack('<f', data) | |
77 elif instr_type == 28: # shift_texture_y | |
78 args = unpack('<f', data) | |
75 else: | 79 else: |
76 args = (data,) | 80 args = (data,) |
77 anm.scripts[i].append((time, instr_type, args)) | 81 anm.scripts[i].append((time, instr_type, args)) |
78 if instr_type == 0: | 82 if instr_type == 0: |
79 break | 83 break |