spritemapper

command module
v0.0.0-...-3e2fce3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 8 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL