lua-users home
lua-l archive

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

On Feb 13, 2008 6:07 AM, Martin <> wrote:
> On Wed, Feb 13, 2008 at 02:32:13PM +0200, Ivan-Assen Ivanov wrote:
> > We are using heavily Lua in games. We do C-to-Lua calls
> > on each frame to render our UI (which is almost entirely in Lua), and
> > on each user input message (mouse move, key press, controller action
> > etc.).
> Is there some tutorial or samples how to integrate lua in game?
> I would like to learn how can system as Ivan-Assen Ivanov describe
> be implemented.
> Maybe there is some simple open source game that use this concept?

I think your question could equally be "how to integrate Lua and
C/C++?".  I would definitely pick up the Programming in Lua book if
you don't already have it.  I guess the only potential difference
between a straight C/C++ embedding and a game embedding would be the
need to sandbox your Lua environment.  There are a number of good past
threads on this issue, so the mailing list will probably be your best