Level File Format

Hi all,

I’m new here, but have been following Corona development with great interest.

I’m looking at building a basic level editor to fit into a Corona workflow. I was just wondering what the fastest format to store level data would be? I’ve used XML in the past, but have read that Lua files are faster, and Json is easier. Additionally I’ve read up on the ICE module, but that seems more tailored to high scores, preferences etc.

I’m looking at levels with 1000s of lines, as opposed to 100s. e.g. Sonic as opposed to Angry Birds.

Any help would be great, plus any general pointers on how to handle external level data.

Cheers! [import]uid: 34084 topic_id: 26990 reply_id: 326990[/import]

The general consensus is lua files are the fastest, the downside is that apple don’t allow you to modify lua files at runtime so you could only load your data from them, but not save to them while your app is running.

Json is the second fastest, with sqllite in third. [import]uid: 84637 topic_id: 26990 reply_id: 109515[/import]

Cool, thanks for the info. Where would be best to look for how to structure a fairly complex lua level? [import]uid: 34084 topic_id: 26990 reply_id: 109529[/import]

Here are a few things I found:

http://www.scribd.com/felipeaab/d/91281116/228-The-“Levels”-Data-Structure

http://www.javacooperation.gmxhome.de/PlatformGameBasicsEng.html [import]uid: 84637 topic_id: 26990 reply_id: 109662[/import]