Open seivan opened 6 years ago
This shouldn't be difficult, just requires someone's time. It's also tedious work. Since Tiled's latest version still supports exporting to XML there's likely no priority for this. Feel free to submit a PR using the bundled rapidjson
library (examples exist in engine test project sources).
It's possible the Cocos Creator project has some or full support for parsing the JSON version.
3.17
From the code, it seems parsing the
XML
returns aTMXMapInfo
and that on its own is used to build the entire map.With the assumption that the created
TMXMapInfo
does not contain XML specific content, wouldn't it be possible to create one usingJSON
as well, thus supporting both?Granted, this relies on using the JSON parser to create a
TMXMapInfo
, but I from what I can tell, there is aJSON
parser bundled.