lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Ricky Haggett wrote:
Yep, we could store a table of all of the functions / tables within a
specific level script, but it would be awkward for the designers to
maintain, and a potential source of error...

You could load the level into a table, use setfenv to have level functions see this table as 'global', and add true global functions to the table when you load a level.