Fundamental question about level design

Hi All,

I am new to Corona SDK development and am just trying my hand at developing a game.

I have a fundamental question about building levels and am looking for some opinions. If a game will have multiple levels (let’s say like Angry Birds) is it better to dynamically build each level at runtime from a configuration file that describes each level, or is it better to build each level as separate lua files? I imagine building as separate lua files will make the code base rather large.

I am interested in knowing what approach developers have taken. Thanks for responding.

Kind Regards,
ejschuel [import]uid: 53814 topic_id: 23360 reply_id: 323360[/import]

Config files hands down.

Whether you use sql, xml or json or your own format is up to you.

ICE (available via code exchange) makes using sql lite databases a snap [import]uid: 84637 topic_id: 23360 reply_id: 93609[/import]

Yup. or if you want an easier one try LevelHelper :slight_smile: [import]uid: 10389 topic_id: 23360 reply_id: 93629[/import]

Does LevelHelper, and the upcoming Anscamobile Level Editor create a lua file for each level? [import]uid: 53814 topic_id: 23360 reply_id: 93632[/import]

LevelHelper creates it’s own level data files.
If you want Lua ones, I’d suggest using Tiled and EXPORT LUA. [import]uid: 10389 topic_id: 23360 reply_id: 93636[/import]