-
Notifications
You must be signed in to change notification settings - Fork 1
MapEditing
The game is using the standard free map editor Tiled.
On this page you will find a quick and easy tutorial (in a few steps) for creation of the map files that the game can use.
The first and most important part in creating a map is the download and installation of the software. On the the page of the Tiled map editor download and install the editor for your operating system.
Open the map editor and create a map with Ortogonal orientation. The tile size does not matter but we use 101x101 pixels for our map (it is useful cause 101 is odd number and we have defined center).
After the map is created you can add a Tile set. For that please click on Map->New Tileset. After that you will see the window where you can choose the image for your tile set. Select the wanted image. Have in mind that the image will be divided on the tile size you selected, so you don't have to cut it.
For this step you will have to find the "Tilesets" window where is displayed your Tileset. For each tile right click and choose Tile Properties. Then add property named "collidable" with value == 1. This will make the whole tile collidable which means no vehicle can pass through it. But if part of the tile is not collidable you can add property named "points" in which you will point the figure that is collidable. The figure is indicated by it's edges' coordinates (have in mind that the {0,0} is up left). For example if the tile is a rectangle and it's points are {50,0; 50,50; 101,101; 101,0} you will have to add them so that the points' sequence can draw the figure! On the screenshot the dark blue zone is the collidable zone!