Pokemon Sprite Compression

A library for dealing with compressed Pokemon sprites.

Implementation status:

Installation

sh cargo add pokemon-sprite-compression

Usage

```rust const rom = std::fs::read("pokecrystal.gbc").unwrap();

// Pikachu back sprite let sprite = pokemonspritecompression::gen2::decompress(&rom[0x156ea1..]); ```

Acknowledgements

Huge thanks to wgjordan on Hacker News for reverse engineering and documenting the compression algorithm. I've included a copy of the documentation in this repository for convenience, as the file doc/gen2.txt.