Hi,
I’m working on a multi-level game. I’ve got the general ideas sketched out in comments in my main.lua, and I’d like to get some ideas on the best ways to implement things.
Is it best to have every level in a function and simply call the next function when conditions of a while loop prove false? Something like:
function Level1(event)
while something
do something
end
Level2()
end
function Level2(event)
while something
do something
end
Level3()
end
or is there a better way to do it?
I’m new to Lua, and am reading the Programming in Lua book (http://www.lua.org/pil/) but I’d also like to be working on the game at the same time.
Any and all suggestions are much appreciated!
Thanks. [import]uid: 20731 topic_id: 5356 reply_id: 305356[/import]