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 [2018/03/22 19:06] madsiur [Tile Sets] |
ff3:ff3us:doc:asm:fmt:map_tile_sets [2019/02/12 12:19] (current) |
||
---|---|---|---|
Line 19: | Line 19: | ||
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: | 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 | + | | subtile |
- | | top-left | + | | top-left |
- | | top-right | + | | top-right |
- | | bottom-left | + | | bottom-left |
- | | bottom-right | + | | bottom-right |
This data byte has the following format: | This data byte has the following format: | ||
- | | bit 0 | ? | | + | | bit 0 | ? | |
- | | bit 1 | ? | | + | | bit 1 | ? | |
- | | bits 2-4 | Palette ID (0 to 7) | | + | | bits 2-4 | Palette ID (0 to 7) | |
- | | bit 5 | Priority one | | + | | bit 5 | Priority one | |
- | | bit 6 | Mirrored | + | | bit 6 | Mirrored |
- | | bit 7 | Inverted | + | | bit 7 | Inverted |
===== Tile Sets ===== | ===== Tile Sets ===== |