Lua

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
dejai
Chaos Rift Junior
Chaos Rift Junior
Posts: 207
Joined: Fri Apr 11, 2008 8:44 pm

Lua

Post by dejai »

I remember gyro talking about wrapping items for lua in one of his videos. I am looking to do something similar and use lua to handle game logic so if I call spawnObject(x) or whatever, it will run the C++ function that specifies that. Any ideas where I can get more information on this? Thanks.
K-Bal
ES Beta Backer
ES Beta Backer
Posts: 701
Joined: Sun Mar 15, 2009 3:21 pm
Location: Germany, Aachen
Contact:

Re: Lua

Post by K-Bal »

Are you using a wrapper lib? If not, I would recommend the Lua book: http://www.amazon.com/Programming-Lua-S ... 676&sr=8-1. With Luabind it's very easy.

Make the Lua part as small as possible. Try to keep the core functionality of your logic in C++.

Ciao,
Marius
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Lua

Post by dandymcgee »

K-Bal wrote:Are you using a wrapper lib? If not, I would recommend the Lua book: http://www.amazon.com/Programming-Lua-S ... 676&sr=8-1. With Luabind it's very easy.

Make the Lua part as small as possible. Try to keep the core functionality of your logic in C++.

Ciao,
Marius
One time, I put my game loop in a Lua script...
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
Post Reply