Archived

This topic is now archived and is closed to further replies.

Lua scripting

This topic is 5001 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites