Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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
1  
yeah sure.. i got it .. –  dineshswamyp Feb 17 '13 at 18:36

2 Answers 2

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

Your Answer

 
discard

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.