Basic Loader for Tiled Maps in Corona (JSON formated)

1 other point guys; I see Jay is considering moving Lime to OSS. Definitely some stuff to pick at there if he does so… [import]uid: 41884 topic_id: 35500 reply_id: 141214[/import]

On the JSON vs. TMX vs. Lua front, it doesn’t really matter to me–other than the fact that I hate parsing XML (which is what TMX is based on…) However, the Tiled guys have stated that only way to make sure you are getting all the data is to look at the TMX file. Some exports don’t include everything… [import]uid: 51498 topic_id: 35500 reply_id: 141215[/import]

If Lime goes OSS, that would certainly be easier than starting all over :slight_smile:

I certainly understand wanting to sell something that you’ve spent lots of time on, but I think Corona needs two Community OSS projects–a cross-platform code editor with AutoComplete, Code hints, etc. and a Level/World builder. I think having 4 or 5 different closed sourced versions of both of these makes it hard to spin up new projects.

I think Tiled is a good choice for the latter, but I don’t think we will ever get proper Editor/IDE (especially on the Windows side of the fence.)

My $0.02. [import]uid: 51498 topic_id: 35500 reply_id: 141216[/import]

I think we should start with basic loading of maps.

So with that, either Gridmap or your loader could be started with.

.json maps seem like a good idea - if there’s already a handy json.decode function, why create a new one? :slight_smile:

I do have a GitHub account, but… I’ve never done anything with it, as I can’t figure out how to use it. You can’t, by any chance, use Dropbox?

I’ve also opened up a new thread for this:

http://developer.coronalabs.com/forum/2013/02/01/tiled-map-engine

Caleb [import]uid: 147322 topic_id: 35500 reply_id: 141248[/import]

Let’s move off to your new thread… [import]uid: 51498 topic_id: 35500 reply_id: 141251[/import]