Skip to content
Switch branches/tags
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Stories in Ready

Auto Terrain Generator

Create terrains for Tiled editor quicker


Use this tool to combine your tilesets into one terrain and paint quicker "landscape" in Tiled editor.

1. Prepare your tilesets

Each tileset should containt every possible tile combination. Use below template to create your own. Only 15 tiles are used, the last one is ignored.

I've tested this tool for generating terrain of 2, 3 and 4 tilesets. Adding more would probably cause longer generation time, and also I'm not sure how would Tiled react to that.

Template tileset

2. Set correct tile size

Default is 16px x 16px. Change it in "Configurate" window if you're using different tile size. Width and height must be equal, eg. 32px x 32px.

3. Load up all your tilesets

Put all your tilesets into input folder, type your filename (with an extension!) and hit LOAD. Your tileset should appear in the list below.

Here you can:

  • change name of the layer - this will appear in Tiled Terrains window
  • change order - bottom layers will be rendered on top of all the other tilesets. Reverse-photoshop style :)
  • remove tileset
  • click tileset preview to see how the generator split each tile in "Tileset Preview" window

Load tileset


The terrain will be available to preview in the bottom part of window.

5. Export bitmap and TSX file

At the bottom you'll find:

  • "Export Bitmap" - save terrain PNG file in output/ folder
  • "Export TSX" - save .tsx file for Tiled in the same folder

Work in Tiled

To use your new terrain you have to open new map, go to menu and hit "Map" -> "Add external tileset". Navigate to generator's output/ folder and choose output.tsx file.

Happy designing!

This tool was created using:

  • luxe engine - luxe is a free, open source cross platform rapid development haxe based game engine for deploying games on Mac, Windows, Linux, Android, iOS and WebGL.
  • mint - mint is minimal, renderer agnostic ui library for Haxe.
  • format - The format library contains support for different file-formats for the Haxe programming language.


Generate terrain maps for Tiled by providing 2 or more tilesets




No packages published