Every game engine has its own concepts behind it that define its internal workings. In this chapter, we will take a quick tour of the different ideas that Moai SDK uses, in order to understand it better.
Moai's Runtime uses two important data structures, namely, a dependency graph of objects/nodes and a tree of actions. What you'll (mostly) do as a developer is modify those data structures (in Lua, using the Moai SDK API).
The Moai update loop has three steps:
In Moai, rendering is detached from the game loop, since we might want to have more than one update step for every rendered frame.
When you press a key, move ...