- For storing related data into the
module
table (effectively a singleton). - For storing related utility functions.
For creating OOP instances. The following are possible:
- Private (file local) constants
- Private (file local) helper functions
- Class attributes and methods
- Instance constructors (and attributes)
- Instance methods
- The Corona SDK scene template with comments explaining everything that must be created and destroyed.
- For extending existing global libraries (e.g.
timer
). - Just be sure to
require("extension.lua")
inmain.lua
, so that your extension can be used everywhere.