In this tutorial we will learn a very simple concept of using terrain inside Tiled Level Editor for creating levels for games.
What is Tiled?
Tiled is a map editor software for creating maps, levels for games. Refer this for quick getting started introduction of Tiled Map Editor.
Create a new map in Tiled and add a new Tileset
Create a new orthogonal map of tile size 16 x 16 pixels as shown below:
Then add a new Tileset containing tiles for creating terrain in your tiled map as shown below.
Note that Margin and Spacing is 0 px for the sample terrain_tile.png file provided below.
Basically it requires two types of tilesets inside your tilesheet file for creating terrain information.
1) Tilesets containing fill tiles with borders.
2) Tilesets containing corner for your terrain.
Create Terrain Information for the tileset
After adding the above tilesheet, click on the button labled as Edit Terrain Information. Look at the highlighted region in the following image:
Now add a new terrain by clicking on the + button provided at the bottom of the newly opened window and provide the terrain information for the terrain you just created. You need to highlight the areas of fill and corners as shown below:
We have created a new terrain and named it Walls as shown above.
Now use this newly created terrain to draw your map using terrain tool in any Tile Layer.
I have provided below the screenshot of final output as a very basic map drawn using the terrain we just created:
7,538 total views, 3 views today