๐บ๏ธHow to edit map ?
use tiled.
1 - Click on New Tileset
.

2 - Choose a name, take tiles of 16 pixels by 16 pixels and with the browse option select the tileset image found in assets/tileset/tiles.png
(this image can be modified to see more possibilities).

3 - Save the tileset where you want it to be.
4 - Then in the tiled homepage or in file -> new, select new map.
5 - Choose the size of the map, how many squares by how many, and put 16 pixels by 16 pixels for the tiles.

6 - Click on OK
7 - You have the right tiles that you can select, and with the help of the tools on top you can create your map.

8 - If the layer menu is not displayed click on view -> view and toolbar -> layers.

9 - Avec click droit crรฉer 4 tile layer : map, foreground, background, spike
.
10 - Place them in the following order.

11 - Click on the desired layer to paint over it.
12 - The map layer's corresponds to the collision (wall and floor in the game).
13 - The layer spike kills the player.
14 - When your map is finished save your map to the size of your choice with file -> save
(keep the default format : .tmx
).
15 - Now we will be able to modify the existing maps of the game (there are 7) (take the one of your choice in assets/map/map_X.xml)
.
16 - In the map file you can keep only the base, we will fill it together.
<MAP_2>
<SPAWN>
<X></X><Y></Y>
</SPAWN>
<FISH>
</FISH>
<SIGN>
</SIGN>
<MONSTERS>
</MONSTERS>
<MAP>
</MAP>
<FOREGROUND>
</FOREGROUND>
<BACKGROUND>
</BACKGROUND>
<DEATH>
</DEATH>
</MAP_2>
17 - Also open the backup of your map it should look like this :

18 - The number boards in their respective locations in the game map: The first is placed between the background tags, The second between the map tags, The third between the death tags, The fourth between the foreground tags.
19 - Then you deal with the rest there are the co of the player x and y.
Fishing spot :
x:y
The signs :
x:y:map
Monsters :
type: x : y : damage: life : xp: item - item - item - ...
Last updated