Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How does one load .tmx files from Tiled into a SFML game?

share|improve this question
Keep in mind to accept one answer, which both increases your reputation and helps you get help in the future if people see, that you approve of given hints and answers! – Christian Ivicevic Feb 15 '13 at 19:56
yeah sure.. i got it .. – dineshswamyp Feb 17 '13 at 18:36

In my opinion the tmx-parser is the most robust library available which I have been using, too. It even supports compression which is the default option in Tiled.

share|improve this answer
This, and if that does not please you, you can still export from Tiled to other formats like JSON and parse that, there is a lot of parsers for JSON. – opatut Feb 15 '13 at 20:19

TMX is an xml-based format. You can parse it with any XML-parsing library to extract the level data and convert it into your internal format.

share|improve this answer
okay ... got it – dineshswamyp Feb 14 '13 at 10:29

Two other options you have are STP and sfml-tmxloader

As for the first option I have not tried it. However I've used sfml-tmxloader and found it to be very simple to use, which is also the one I recommend.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.