O'Reilly logo

Developing Mobile Games with Moai SDK by Francisco Tufro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Lua and C++

Another interesting feature behind Moai is the that you have access to both Lua and C++ to develop your game.

After setting up your nodes and actions using Lua, Moai SDK runs the simulation using native code written in C++. This means that you get the best of both worlds—the flexibility of Lua and the speed of C++.

All the platform-specific stuff (for example, handling the accelerometer on a smartphone) should be handled natively and connected to Moai SDK using a Lua extension or input events (check how hosts configure AKU, search for the AKUSetInputDevice* family of methods).

This is a key concept for Moai SDK development, because you can see that there is no limit to what libraries you can use with Moai SDK. It's just a matter of taking ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required