Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ff3:ff3us:doc:asm:fmt:map_tile_sets [2017/04/08 00:07] madsiur ↷ Page moved from ff3:ff3us:doc:asm:map_tile_sets to ff3:ff3us:doc:asm:fmt:map_tile_sets |
ff3:ff3us:doc:asm:fmt:map_tile_sets [2019/02/12 12:19] (current) |
||
---|---|---|---|
Line 12: | Line 12: | ||
| SNES offset | | SNES offset | ||
| Chunk size | | Chunk size | ||
+ | | Size (decompressed) | ||
| Number of chunks | $4B | | | Number of chunks | $4B | | ||
| Total size | | Total size | ||
+ | |||
+ | ===== Tile Sets Data ===== | ||
+ | Each tile set is $800 and has a maximum of $100 tile (16x16). Each tile is composed of 4 8x8 subtiles, top-left (1), top-right (2), bottom-left (3) and bottom-right (4). Bytes $400 to $7FF are one byte of data per subtile, starting from all top-left subtiles ($400-$4FF) and following same order as described above. As an example consider tile $F3 of the tile set: | ||
+ | |||
+ | | subtile | ||
+ | | top-left | ||
+ | | top-right | ||
+ | | bottom-left | ||
+ | | bottom-right | ||
+ | |||
+ | This data byte has the following format: | ||
+ | |||
+ | | bit 0 | ? | | ||
+ | | bit 1 | ? | | ||
+ | | bits 2-4 | Palette ID (0 to 7) | | ||
+ | | bit 5 | Priority one | | ||
+ | | bit 6 | Mirrored | ||
+ | | bit 7 | Inverted | ||
===== Tile Sets ===== | ===== Tile Sets ===== |