craftworkgames / MonoGame.Extended

Extensions to make MonoGame more awesome
http://www.monogameextended.net/
Other
1.43k stars 324 forks source link

request: use DotTiled instead of current Tiled reader #957

Open ghost opened 5 days ago

ghost commented 5 days ago

Hi

There are many issues regarding the Tiled map reader. Also there is now a very good (all Tiled features, more then monogame.extended provides) and very fast library to read Tiled maps:

https://github.com/dcronqvist/DotTiled

Would it be possible to use this library in MonoGame.Extended instead of the current Tiled reader?

Thx

AristurtleDev commented 5 days ago

Hey @nes-girl,

This is actually something we've been discussing in the discord the past couple of days. I believe we are leaning toward doing this, though it will be a little work to get it done. DotTiled is just a tmx/tmj parser, so we'd need to fit the data presented back into how MGE handles rendering, which is another area that I'd like to have looked at to see if it can be simplified or improved any.

One of the drawbacks of using DotTiled is it becomes a dependency for MGE, which currently has zero dependencies on other libraries or frameworks. So there are a few things to consider, but it is part of the current conversation at the moment.

Going to leave this ticket open for now and we can use it to track the discussion and progress.