Lua scripting
I''m planning on using LUA for scripting in my 2D game engine (which is written in c). However now I get down to implementing it I''m not entirely sure how I should go about executing functions in different script files. My current idea is I have a global lua state and when something wants to call a function in a script it loads the script using lua_load and then calls the function. However this seems like a rather bad way to do things, can anyone suggest anything else?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement