Mercurial > touhou
diff 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 |
line wrap: on
line diff
--- a/pytouhou/formats/anm0.py +++ b/pytouhou/formats/anm0.py @@ -72,6 +72,10 @@ class Animations(object): args = unpack('<fff', data) elif instr_type == 10: # set_3d_rotation_speed args = unpack('<fff', data) + elif instr_type == 27: # shift_texture_x + args = unpack('<f', data) + elif instr_type == 28: # shift_texture_y + args = unpack('<f', data) else: args = (data,) anm.scripts[i].append((time, instr_type, args))