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
- Host: GitHub
- URL: https://github.com/martinlindhe/tile-tools
- Owner: martinlindhe
- License: mit
- Created: 2016-08-17T13:01:27.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-05-03T12:52:57.000Z (about 4 years ago)
- Last Synced: 2025-01-26T01:46:59.839Z (over 1 year ago)
- Topics: cli, golang, tile, tilesets
- Language: Go
- Size: 5.8 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
[](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:

You want to slice it into equally sized tiles:

$Â 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:

You want to combine them to a tile map:

$ 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)