Skip to content

TMX Format

TMX (Tile Map XML) is a standard file format for tilemaps used by many tilemap editors and game engines.

TMX is an XML-based format designed to store tilemap data. It supports layers, tilesets, properties, and object groups. It is widely supported by tools like Tiled Map Editor.

Acid compiles the PCG-related code into TMX and TSX format files for the generated tilemaps and tileset configurations respectively.

Example Output

Given an input:

rows {
    1 * rock -> 20 * path
    3 * wall -> 17 * grass
}

xrows !mirror {
    4 * rock -> 4 * grass
}

The Acid interpreter produces a TMX file encoding the tile sequence and mirroring instructions.