Jump to content
  • Advertisement
Sign in to follow this  
RojanShrestha

Loading a map generated from TILED

This topic is 2536 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guys, I want to load levels designed by using the software "TILED" in my C++ program but have no idea how this is done. Any help will be much appreciated

Share this post


Link to post
Share on other sites
Advertisement
Usually, I write a Python script to convert Tiled maps into a format my game can understand. If you don't mind recompiling when adding new levels, you can even turn the levels directly into your ingame memory layout, which makes loading trivial. Python is quick and easy to code scripts in, and there's usually preprocessing you want to do on the level anyway. Also, it avoids the overhead of requiring a C++ XML library with your game.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!