Skip to content
Lasconik edited this page Nov 9, 2014 · 3 revisions

Tilesets are just XML documents bounding an image to tile information.
An XML tileset should follow the following format:

<?xml version="1.0" encoding="UTF-8"?>
<TILESET tilesize="64" width="4" height="4" image="a.png">
  <TILE index="0" />
  <TILE index="1" destructable="true"/>
  <TILE index="2" blocking="false"/>
  <TILE index="3" destructable="true" blocking="true"/>
  <TILE index="4" destructable="true" blocking="true"/>
  <TILE index="5" destructable="true" blocking="true"/>
</TILESET>

Default: As you can see, there is no need to define all tiles. Undefined tiles will be set to default (blocking but not destructable).

The previous example defines tiles for this images: tileset image.

Clone this wiki locally