Sprite compression (Generation I): Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
mNo edit summary
Line 1: Line 1:
{{incomplete|needs proper analysis. The official method may also have been in the source code}}
{{incomplete|needs proper analysis. The official method may also have been in the source code}}


'''Sprite compression''' is the means in Generation I for where pure graphics data is compressed into a Pokémon or Trainer sprite. The sprite is decompressed again using [[Sprite decompression (Generation I)|the sprite decompression routine]] and allocates use of unbanked SRAM. While the source compressor code is not in the ROMs; there are a few rules for a compressed sprite:
'''Sprite compression''' is the means in Generation I for where pure graphics data is compressed into a Pokémon or Trainer sprite. The sprite is decompressed again using [[Sprite decompression (Generation I)|the sprite decompression routine]] and allocates use of SRAM bank 0/"unbanked" SRAM. While the source compressor code is not in the ROMs; there are a few rules for a compressed sprite:


*The image to compress is usually a maximum of 56x56 pixels. Other Pokémon sprites can be 32x32, 40x40 or 48x48.
*The image to compress is usually a maximum of 56x56 pixels. Other Pokémon sprites can be 32x32, 40x40 or 48x48.