Jump to content

Sprite compression (Generation I): Difference between revisions

no edit summary
No edit summary
No edit summary
Line 3:
'''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]]. 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, 48x48, or 56x56 pixels48x48.
*Each nybble of the starting offset to the compressed sprite is dimensions/8. Front sprites can be of various sizes; a 56x56 sprite is represented as 0x77, a 48x48 one as 0x66, a 40x40 one as 0x55, a 32x32 as 0x44.
*Backsprites are internally 32x32 pixels (0x44). Usually, these backsprites also have a little white space at the bottom (hidden by the battle menu).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.