ff3:ff3us:doc:asm:fmt:map_tile_sets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
ff3:ff3us:doc:asm:fmt:map_tile_sets [2018/03/22 18:37]
madsiur [Overview]
ff3:ff3us:doc:asm:fmt:map_tile_sets [2018/03/22 19:06]
madsiur [Tile Sets]
Line 15: Line 15:
 | Number of chunks |  $4B         | | Number of chunks |  $4B         |
 | Total size        $1B400      | | Total size        $1B400      |
 +
 +===== 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  |  tile set offset  |
 +|  top-left  |  $4F3  |
 +|  top-right  |  $5F3  |
 +|  bottom-left  |  $6F3  |
 +|  bottom-right  |  $7F3  |
 +
 +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 =====
  • ff3/ff3us/doc/asm/fmt/map_tile_sets.txt
  • Last modified: 5 years ago
  • (external edit)