Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 592 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 592 Bytes

spritemapper

Used to generate sprite maps for use in games as well as a json output to map file names to row/columns in the output png.

Build

go build -o spritemapper

Usage

Generate a sprite map from a directory of files, prints a json output with the file names and coordinates as well.

./spritemanager -out sprites/output.png PNGs/Floors/Iso_Tile_Floor_* > output.json

If you would like to have a prettier json output you can call it like this

./spritemanager -out sprites/output.png PNGs/Floors/Iso_Tile_Floor_* | jq . -rM > output.json