So I am getting to a point with my little test card game where I would like to start better organizing it into separate lua files. I have a few files now for UI, handling touches, rendering, etc. However, I am using *gasp* global functions and variables. Trust me, I am more disappointed than you are. And I am going to fix it.
Unfortunately I am stuck in a position where I have just finished a number of “make this little game in under an hour” type tutorials, and a lot of the intermediate tutorials are beyond my understanding. I did find this one (http://www.coronalabs.com/blog/2011/07/06/using-external-modules-in-corona/) which was very much at my level, but it was also short and pretty old (based on what I recall reading sporadically, the old methods for using modules are considered improper today). So if anyone can answer one or a few of the following questions I would be incredibly thankful.
1. Do you know of any beginner level tutorials on modules, storyboard, and similar topics that are up to date?
2. What is the popular opinion on modules these days? Are they still used or has something similar replaced them?
3. If they are still used, is it still basically just:
[lua]
module(…, package.seeall)
[/lua]
in the module file and
[lua]
local example = require( “example” )
local helloWorld = example.helloWorld
[/lua]
in the file using said module? Or is this considered a poor method these days?
4. I’m trying to wrap my head around what exactly storyboard is. My vague understanding of it is that it is API that helps you manage different scenes in the game (such as different levels, but perhaps also useful for menus and so on). Is this something that should be used in pretty much any game, or is it only situationally useful, and if so how?
Thank you very much for your time!