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

https://github.com/martinlindhe/tile-tools

Command line tools to process tile set images
https://github.com/martinlindhe/tile-tools

cli golang tile tilesets

Last synced: about 2 months ago
JSON representation

Command line tools to process tile set images

Awesome Lists containing this project

README

          

# About

[![GoDoc](https://godoc.org/github.com/martinlindhe/tile-tools?status.svg)](https://godoc.org/github.com/martinlindhe/tile-tools)

Command-line tools to process tile set images

Provides tileslicer, tilejoiner, tilecutter and tileflipper commands.

## Installation

go install github.com/martinlindhe/tile-tools/cmd/tileslicer@latest
go install github.com/martinlindhe/tile-tools/cmd/tilejoiner@latest
go install github.com/martinlindhe/tile-tools/cmd/tilecutter@latest
go install github.com/martinlindhe/tile-tools/cmd/tileflipper@latest

## Usage - tileslicer

Slices input image into several tiles.

You have a tile map:

![have](docs/ex_tilemap.png)

You want to slice it into equally sized tiles:

![want](docs/ex_tiles.png)

$ tileslicer 1.png --out ./parts --width 32 --height 32

## Usage - tilejoiner

Combines all images in a folder into a new tile set

You have a bunch of equally sized tiles:

![want](docs/ex_tiles.png)

You want to combine them to a tile map:

![have](docs/ex_tilemap.png)

$ tilejoiner ./parts --out 1.png --tiles-per-row 6

## Usage - tilecutter

Keeps bottom 1/3:rd of input images

$ tilecutter --keep-bottom --one-third _tmp

## Usage - tileflipper

Flip (mirror) input image

$ tileflipper _samples/ground.png --out flipped-ground-h.png --horizontal
$ tileflipper _samples/ground.png --out flipped-ground-v.png --vertical

## License

Under [MIT](LICENSE)