HowToUseTiledToCreateStendhalMaps: Difference between revisions

Content deleted Content added
imported>Kymara
m just moving comment for clarity
imported>Kymara
Layers: made exactly the same as we use. and big important things written in
Line 40:
As you have already seen there are five layers in the map. <b>They must all exist. However, they can be empty.</b>
 
The fourfive first layers are the ones that host the game graphics:
* floor0_floor
* 1_terrain
* terrain
* 2_objects
* object
* roof3_roof
* 4_roof_add
* roof add
 
the layers
*objects
*collision
*protection
 
are special. The objects layer must ONLY contain tiles from objects tileset (like monsters and food) NOT other graphics. The collision tileset uses ONLY the red square in the collisions tileset and the proection layer uses the green square from the collision tileset.
 
The draw order is:
# floor0_floor
# 1_terrain
# terrain
# 2_objects
# object and sprites like players, monsters, etc... sorted from lowest y, lowest x
# roof3_roof
# 4_roof_add
# roof add
 
This basically means that any objects closer to the bottom of the screen, ie the foreground in our pseudo 3D world will be on top of other objects, and roof and roof add will be above everything.