C++ Tiled map loader

Hello,

I was just wondering, seeing that tiled is written in c++ is it possible to use the tiled code to load in a map for our games. that way we would always have the newest map loader version.
I am not to familiar with the project so i was wondering what you all think.

You definitely could use some of the code from the editor since it’s open source and written in C++, but since every project is different you’re likely better off just parsing the XML map files yourself and extracting the data you need specifically for your game. That way you can also do any processing on the data you need without doing the heavy job of collecting all of the data the editor needs. (e.g. you probably don’t need wangset or terrain information in your game unless you’re using it to control game behavior, not just editor behavior)

1 Like