rzru / png2tileset

this utility creates tilesets out of PNG images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

png2tileset

Original Tile Map - Original Tile Map

8x8 Tileset created from the Tile Map - 8x8 Tileset created from the Tile Map

4x4 Tileset created from the Tile Map - 4x4 Tileset created from the Tile Map

Description

This small utility allows you to generate tilesets out of PNG images. It ignores duplicated tiles and creates a smallest possible tileset of given size. It's made for my personal purposes to create tilesets for GBA games but probably can used for something else.

Usage

You want to build this with cargo build --release before use. After this the release version of a binary can be found in target/release directory.

Converts png images (tilemaps) into png tilesets

Usage: png2tileset [OPTIONS] <FILE>

Arguments:
  <FILE>  File path

Options:
  -o, --output <OUTPUT>  Output file path
  -s, --size <SIZE>      Tile size (in pixels) [default: 8]
  -h, --help             Print help information
  -V, --version          Print version information

Development

Should I even write it?

cargo run

cargo build

cargo build --release

License

WTFPL

About

this utility creates tilesets out of PNG images


Languages

Language:Rust 100.0%