lua-users home
lua-l archive

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


On 1/19/2011 11:38 AM, Marc Balmer wrote:
In general, when game programmers use C and Lua, to they fire up a C program
that calls a Lua script, or do they fire up a Lua script that calls a C
program, or are both commonly done?
I am not a game programmer, but I fire up a program written in C which
then creates a Lua state, looks in a certain directory for scripts, and
if found, executes them.  These scripts can then register various
callbacks with the main program.


I'm a game programmer :D , and I do this as well. Start the game, which registers bindings and such, and then run a startup.lua file.

Cheers,
Christian Tellefsen.