You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -40,11 +40,14 @@ To tilesets like this:
40
40
*[get yourself Go](https://go.dev/doc/install)
41
41
* clone this repository or download sources.
42
42
* put simple tileset image (for example 2x3_packed.png) to source folder
43
-
* run ```go run . <src image> <dst image> [padding]```
44
-
e.g. ```go run . ./examples/2x3_packed.png output.local.png```
45
-
* you can optionally set padding for tiles in px. To do so you need to add desired padding as 3rd argument:
46
-
e.g. ```go run . ./examples/2x3_packed.png output.local.png 1``` - this will create tilesets with 1 px margin and 2px spacing.
47
-
* grab complete tilesets from `out` directory
43
+
* run ```go run . -in <file_in> [-o <file_out>] [-p <padding>] [-e <export_type(16,28,48,all)>]```
44
+
45
+
e.g. ```go run . -in ./examples/2x3_packed.png -o ./out/output.local.png -p 1 -e 16 -e 28 -e 48```
46
+
* you can optionally set padding for tiles in px. To do so you need to add desired padding as argument:
47
+
48
+
e.g. ```go run . -in ./examples/2x3_packed.png -p 1``` - this will create tilesets with 1 px margin and 2px spacing.
49
+
* grab complete tilesets from directory specified in `-o`.
50
+
* don't worry about filenames, as program will automatically prefix output files with necessary information. E.g. for options `-o ./out/output.local.png -e 16` output files will be `./out/16x1_terrain1_output.local.png` and `./out/16x1_terrain2_output.local.png`
48
51
* enjoy
49
52
* alternatively you can build an application using `make build` command to use it as a standalone application without Go
0 commit comments