An open API service indexing awesome lists of open source software.

https://github.com/rzru/png2tileset

this utility creates tilesets out of PNG images
https://github.com/rzru/png2tileset

gba rust tilemap tilemaps tileset tilesets

Last synced: 3 days ago
JSON representation

this utility creates tilesets out of PNG images

Awesome Lists containing this project

README

        

# png2tileset

![Original Tile Map](docs/Sprite-0001.png)
\- Original Tile Map

![8x8 Tileset created from the Tile Map](docs/Sprite-0001-tileset-8x8.png)
\- 8x8 Tileset created from the Tile Map

![4x4 Tileset created from the Tile Map](docs/Sprite-0001-tileset-4x4.png)
\- 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.

```bash
Converts png images (tilemaps) into png tilesets

Usage: png2tileset [OPTIONS]

Arguments:
File path

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

## Development

Should I even write it?

```bash
cargo run

cargo build

cargo build --release
```

## License

[WTFPL](https://en.wikipedia.org/wiki/WTFPL)