Platforming with Lua
Today I spent a while working with Lua. It took me a while to figure out how to get it to interface with C. It took even longer to get it to work with C++ objects! I feel like there should be a way to pass an object’s member function as a function pointer to be registered with Lua…I couldn’t quite figure it out, though. I had to bricole something up to register an object with a global variable so a global function could access it…Maybe I should write a tutorial on that subject, because there seemed to be a lack of good documentation. (There was some sample code on the Lua Users Wiki, but it was never explained…I always feel a bit uncomfortable just plopping in code that I don’t really understand.)
Now, if I can start writing room-generation scripts in Lua, that will really be something.