Skip to content

this utility creates tilesets out of PNG images

Notifications You must be signed in to change notification settings

rzru/png2tileset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages