marshallward / TiledSharp

C# library for parsing and importing TMX and TSX files generated by Tiled, a tile map generation tool
http://marshallward.github.io/TiledSharp
Apache License 2.0
329 stars 87 forks source link
tiled-map-editor tmx

TiledSharp

A .NET C# library for importing Tiled TMX tile maps

NOTE: This project is no longer being maintained. Please consider using the TiledCS_ project, which has a similar API and supports a greater number of features.

.. _TiledCS: https://github.com/TheBoneJarmer/TiledCS

About TiledSharp

TiledSharp is a .NET C# library for importing TMX tilemaps and TSX tilesets generated by Tiled, a tile map generation tool. The data is saved as a TmxMap_ object, whose structure closely resembles the original TMX file.

As a generic TMX and TSX parser, TiledSharp does not render the maps or depend on any external framework beyond .NET, such as Windows, XNA/MonoGame, Unity, or PSM. However, it can be used as an interface between TMX data and external games.

Usage

To import a TMX file into your C# application:

Map data fields correspond closely to the TMX file structure. For a complete listing, see the documentation_.

Although TiledSharp can manage elements with the same name, it is not recommended. For more information, see the TmxList_ specification.

Examples

Notes

TiledSharp parses XML files produced by Tiled_, an open-source (GPL) tile map editor developed and maintained by Thorbjørn Lindeijer.

Licensing

TiledSharp is distributed under the Apache 2.0 License. The code can be used freely in any project, including commercial software, and does not place any restrictions on your own code. But any changes to TiledSharp must be documented explicitly.

Attribution is not necessary, but always appreciated.

Contact

Marshall Ward tiledsharp@marshallward.org

.. _TMX: https://github.com/bjorn/tiled/wiki/TMX-Map-Format .. _Tiled: http://mapeditor.org .. _TmxMap: http://marshallward.github.io/TiledSharp/classTiledSharp_1_1TmxMap.html .. _TiledSharp: https://github.com/marshallward/TiledSharp .. _documentation: http://marshallward.github.io/TiledSharp/index.html .. _TiledSharp Data Hierarchy: https://github.com/marshallward/TiledSharp/wiki/TiledSharp-Data-Hierarchy .. _TmxList: https://github.com/marshallward/TiledSharp/wiki/TmxList .. _DotNetZip: http://dotnetzip.codeplex.com .. _Temeez: https://github.com/Temeez .. _Tesserae: https://github.com/marshallward/Tesserae .. _Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0.txt .. _Microsoft Public License: http://www.microsoft.com/en-us/openness/licenses.aspx#MPL