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: wiki/tools/tiled-map-packer.md
+15-18Lines changed: 15 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -4,27 +4,26 @@ title: "Tiled Map Packer"
4
4
5
5
# TiledMapPacker
6
6
7
-
> **Warning**, while the latest TiledMapPacker is available for download.
8
-
> In order to use maps created with it. You must be using the latest SNAPSHOT version of libGDX, currently *1.13.2-SNAPSHOT*.
7
+
> **Warning:** While the latest TiledMapPacker is available for download, you must be
8
+
> using the latest SNAPSHOT version of libGDX, currently 1.13.2-SNAPSHOT, to load maps created with it.
9
9
10
10
You can download the runnable JAR release of **TiledMapPacker**, [here](https://libgdx-nightlies.s3.eu-central-1.amazonaws.com/libgdx-runnables/runnable-tiledmappacker.jar).
11
11
12
-
*Offline tool for processing one or more Tiled maps (`.tmx` or `.tmj`) into a single optimized `TextureAtlas`, combining tilesets,
13
-
image layers, and individual images into an atlas for use with the `AtlasTmxMapLoader` or `AtlasTmjMapLoader`.*
14
-
12
+
*Offline tool for preparing Tiled maps (`.tmx` or `.tmj`) to use a single optimized `TextureAtlas` for rendering
13
+
in libGDX, by combining tilesets, image layers, and individual images. Designed for use with `AtlasTmxMapLoader` or `AtlasTmjMapLoader`.*
15
14
16
15
## Why use TiledMapPacker?
17
16
18
17
TiledMapPacker is designed to optimize your Tiled maps for better runtime performance:
19
18
20
-
-**Fewer draw calls** – By combining multiple tilesets, images, and layers into a single optimized `TextureAtlas`,
21
-
your game can render entire maps faster with fewer texture switches. This is especially helpful for parallax backgrounds made using imagelayers, and maps that use a variety of tilesets.
19
+
-**Fewer draw calls** – By combining multiple tilesets, images, and layers into a single optimized `TextureAtlas`,
20
+
your game can render entire maps faster with fewer texture switches. This is especially helpful for parallax backgrounds made using imagelayers, and maps that use a variety of tilesets.
22
21
-**Optional tile stripping** – Unused tiles can be omitted to reduce file size and memory use.
23
22
24
23
25
24
## Running TiledMapPacker
26
25
27
-
### Stand‑alone JAR
26
+
### Standalone JAR
28
27
29
28
```
30
29
# Creates an output directory named "output" next to INPUTDIR
> **Note:** TiledMapPacker internally uses `TmxMapLoader` and `TmjMapLoader`, which require a valid OpenGL context. The runnable JAR automatically creates a minimal LwjglApplication that opens a small window.
0 commit comments