Last active
July 20, 2019 10:24
-
-
Save heisvoid/caac631a4f8966f8e3cd to your computer and use it in GitHub Desktop.
Structure of sprite type 0 in TWG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
offset length description | |
0 0x42 header string | |
0x42 2 number of sprites <N> | |
0x44 60 zero padding bytes | |
0x80 x N * (each sprite) | |
each sprite | |
offset length description | |
0 4 total length of compressed data <L> | |
4 2 width. 320 >= width | |
6 2 height. 200 >= height | |
8 2 unknown | |
10 2 unknown | |
12 L compressed data | |
compressed data | |
offset length description | |
0 2 number of blocks <B> | |
2 x B * (each block) | |
each block | |
offset length description | |
0 2 number of blank pixels | |
2 1 m | |
3 1 n | |
4 4 * m + n painted pixels. palette indices. | |
verifier | |
https://gist.github.com/heisvoid/bf8ac365d5e474642a82 | |
extractor | |
https://gist.github.com/heisvoid/c179122c0ecc2d30cc54 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment