Yue Posted August 27 Share Posted August 27 The question would be to create a game core in c++ and use the game logic in Lua, is that possible? And if so, how is it done? Quote Link to comment Share on other sites More sharing options...
Solution Josh Posted August 27 Solution Share Posted August 27 In Ultra, projects are designed to be used with one language, because unlike Leadwerks, the Ultra components system works with each supported language. However, it is still possible to mix C++ and Lua. The scripting API provides functionality for running scripts, setting variables, and calling functions: https://www.ultraengine.com/learn/Scripting?lang=cpp The sol binding library for Lua is also included, for advanced functionality, and for binding your own C++ classes for use in Lua. The Steamworks code shows an example of this. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.