4 ms·
I think you want to have a good, close look at MOAI: http://getmoai.com/ http://getmoai.com/ Its a C/C++ based engine that includes a Lua VM, wherein you writ
by seclorum 14y ago
I think you want to have a good, close look at MOAI:
http://getmoai.com/ http://getmoai.com/
Its a C/C++ based engine that includes a Lua VM, wherein you write your real app code. The engine runs on Android/iOS/OSX/Linux/Windows. There is a 'host' element to the MOAI project, where native stuff happens for each environment, and the host itself ends up running the VM to interpret the Lua code needed.
Another approach is with games, where a 3D engine is built in C++, with the NDK (on Android) used to interface with a 'wrapper' app that gets the library loaded and in use. I used this approach with a 3d game which uses the same C++ code for Android/iOS clients .. it was a fair bit of work, but the result is that we can do the game logic in C++ and forget about the platform-specific stuff.