Generic File Formats
Tiled supports exporting to several generic file formats which are not targeting any specific framework.
Maps and tilesets can be exported to Lua code. This export option supports most of Tiled’s features and is useful when using a Lua-based framework like LÖVE (with Simple Tiled Implementation), Solar2D (with ponytiled or Dusk Engine) or Defold.
Currently not included are the type of custom properties (though the type does affect how a property value is exported) and information related to object templates.
The tiles are referenced using Global Tile IDs, as done in the TMX and JSON formats.
The CSV export only supports tile layers.
Maps containing multiple tile layers will export as multiple files,
Each tile is written out by its ID, unless the tile has a custom
name, in which case its value is used to write out
the tile. Using multiple tilesets will lead to ambiguous IDs, unless the
name property is used. Empty cells get the value
When tiles are flipped horizontally, vertically or diagonally, these states are exported using bitflags in the ID, in the same way as done in the TMX Map Format.