Tile Map XML Tutorial Tiled Maps

Open Tiled and create a new map. Set the orientation to Orthogonal and the Tile Layer Format to XML. We are using XMLSerialization to deserialize our tmx file in Unity and we are going to be working with Orthogonal type maps.


 The Tile Width and Tile Height you should set to the smallest tile size in your tilesets. If you are going to have one tileset that has 64x64 tiles and one tileset that has 32x32 tiles then set this to 32x32. The tiles from the liberated pixel cup are 32x32 and the tiles from 2D Pixel Tiles are 32x32. So I will be setting my tile height and width to 32. Make sure that you use a texture that is located in your Unity Project Maps->Tilesets.

Save your map in Your Unity Project Maps Folder.

Tile Map XML Tutorial Index
Introduction
Initial Unity Setup
Tileset Textures
Tiled Maps
Tiled Map XML Loading in Unity
NUnit Testing
Tiled Map Format

No comments:

Post a Comment