[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C calls Lua or Lua calls C?
- From: Marc Balmer <marc@...>
- Date: Wed, 19 Jan 2011 11:38:47 +0100
> 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.