|
On 1/19/2011 11:38 AM, Marc Balmer wrote:
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.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.
Cheers, Christian Tellefsen.