Lua
Moderator: Coders of Rage
Lua
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.
Re: Lua
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
Make the Lua part as small as possible. Try to keep the core functionality of your logic in C++.
Ciao,
Marius
- dandymcgee
- 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
One time, I put my game loop in a Lua script...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
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!