SNES-GFX
A tool for converting tiles and tilemaps from SNES games into images.
The tool uses data in the original LittleEndian SNES formats. The tool can extract 2BPP and 4BPP tiles and tilemaps into RGB images. The crate is under construction and stuff will definitely break between versions.
The library is coded as a learning experience, and will probably not follow best-practices.
Usage example
use ;
use ;
// Load necessary data from little endian byte data.
let palette = load;
let tileset = load;
let mut tilemap = load;
// Generate tilemap
tilemap
.generate_image
.save
.expect;
// Iterate over nametable and generate tile images for each entry.
for tile_data in tilemap.tile_iter
// Create an iterator over tileset images
let images = tileset.image_iter;
// Merge into tileset 16 tiles wide
merge_tiles
.save
.expect;