-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Worlds #56
Comments
There used to be a JSON importer in libTMX using the jansson library, but supporting two file formats that have the exact same features was too much work for me only. Unfortunately the JSON fomat has been choosen for world files instead of XML, I was puzzled when the news came out first, is my project (libTMX) obsolete? will JSON supercede XML as the main format to encode maps as well? For now I decided to do nothing and let users of LibTMX handle these world files. |
I don't think this library is obsolete. It may just make sense to bring back JSON support in the future, potentially dropping the XML format instead to save some work. It just seems to me that in general, in the past decade JSON has mostly replaced XML as common interchange format. That started with HTTP APIs of course, but it is also seen in recent standards like glTF 2.0, and game development tools, like GameMaker switching from XML to JSON. I think the main reason is that it's easier to parse, often even directly into strongly typed classes, making it very convenient to work with. So, in trying to make working with Tiled maps as easy as possible, I'm leaning towards defaulting to a JSON based format in the future, though probably only after those issues with the current format have been addressed. New features like the worlds and the recently added export of "property types" only support JSON, since coding support for multiple file formats for each new asset makes things more complex and I don't really see a benefit in doing that. |
Thanks for clarifying the situation. |
Be able to load
.world
World data, along with all the associated maps.It's JSON, so that means we'd need a JSON library, unfortunately. Perhaps best handled outside of the tmx library as an addon?
The text was updated successfully, but these errors were encountered: