Mercurial > touhou
comparison pytouhou/formats/std.py @ 20:6ebf9539c077
Handle more enemies types and movements
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Thu, 11 Aug 2011 12:13:48 +0200 |
parents | 07fba4e1da65 |
children | ab826bc29aa2 |
comparison
equal
deleted
inserted
replaced
19:ca7886296d4a | 20:6ebf9539c077 |
---|---|
84 if message_type == 0: # ViewPos | 84 if message_type == 0: # ViewPos |
85 args = unpack('<fff', data) | 85 args = unpack('<fff', data) |
86 elif message_type == 1: # Color | 86 elif message_type == 1: # Color |
87 args = unpack('<BBBBff', data) | 87 args = unpack('<BBBBff', data) |
88 elif message_type == 2: # ViewPos2 | 88 elif message_type == 2: # ViewPos2 |
89 args = unpack('<Iff', data) | 89 args = unpack('<fff', data) |
90 elif message_type == 3: # StartInterpolatingViewPos2 | 90 elif message_type == 3: # StartInterpolatingViewPos2 |
91 args = tuple(unpack('<III', data)[:1]) | 91 args = tuple(unpack('<III', data)[:1]) |
92 elif message_type == 4: # StartInterpolatingFog | 92 elif message_type == 4: # StartInterpolatingFog |
93 args = tuple(unpack('<III', data)[:1]) | 93 args = tuple(unpack('<III', data)[:1]) |
94 else: | 94 else: |