Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

ANSI C and Tiled TMX integration?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 DrNicholas   Members   

130
Like
0Likes
Like

Posted 17 June 2014 - 04:19 PM

Hello,

 

I am now making myself something that tells me the contents of a .tmx file. I am using GNU ANSI C and libxml2 for this one. I took a look at these:

http://alexdantas.net/stuff/posts/quickly-parsing-tileds-tmx-maps-in-c-cpp/

http://gamedevelopment.tutsplus.com/tutorials/parsing-and-rendering-tiled-tmx-format-maps-in-your-own-game-engine--gamedev-3104

and I don't have much to say on the second one, the first one says it's for C, but it isn't. I couldn't get TinyXML working in ansi c, and in the link inside it that leads to a tmx parser, I see no way of downloading it.

 

Do you know of anywhere that might have documentation on libxml2 and tiled .tmx files? Thanks

 

On the side note, I remember having the java version of tiled, but I don't have it anymore. I know it's a bit older, but if someone has it would they be so kind as to share it? I can't find it anywhere on the net.

 

EDIT:

http://www.developer.com/xml/article.php/3729826/Libxml2-Everything-You-Need-in-an-XML-Library.htm

this helps a teeny-tiny bit, at least I know how to have the file read and have some parts printed to console, but I will have to do alot of experimenting


Edited by DrNicholas, 17 June 2014 - 10:35 PM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.