lua-users home
lua-l archive

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


> > I would guess I would need co-routines, or muliple lua_states, how to I set
> > them up, THE BIG THING how do I interface them with my GAME to make them
> > work, you know how much time I have spent reading nothing but .lua files, I
> > don't care about how they work inside lua, I want to know how they work
> > together with my app, there is plenty of good documents on the scripting
> > langauge itself, I can figure that out, but there is little or no
> > documentation on interfacing it with your app.
>
> Did you read the 3rd section of the manual? If you've got a basic
> understanding of stack manipulation and you read all of the 3rd section
> you should be all set to make a scripting interface.

I would also add that you should read the libraries code. For example, in
the file lmathlib.c, or lbaselib.c, you will find plenty of examples of
use.