Including multiple files into the game/program
Posted: Tue Mar 30, 2010 3:31 pm
Hello. I have a quick question.
I have my main.lua file, but how do I include multiple lua files and have them run on load? It gets really messy with ALL the code in one single file.
Thanks.
EDIT:
I also have another question:
Several functions on the wiki state they have "modes". For example, the rectangle. The wiki does not give a list of all available modes, however. If you can tell me of a place where I can see all available modes of any function that has a "mode" argument, that would be great. If not, people who know all available modes should consider listing them in their corresponding function on the wiki.
I have my main.lua file, but how do I include multiple lua files and have them run on load? It gets really messy with ALL the code in one single file.
Thanks.
EDIT:
I also have another question:
Several functions on the wiki state they have "modes". For example, the rectangle. The wiki does not give a list of all available modes, however. If you can tell me of a place where I can see all available modes of any function that has a "mode" argument, that would be great. If not, people who know all available modes should consider listing them in their corresponding function on the wiki.