One of the basic skills we need to obtain in order to develop games is image manipulation. In this chapter, we'll discuss some aspects of this topic that will be useful for our game. We'll introduce the notion of Decks and Props and talk about how to handle them in order to make our game graphics.
In Moai SDK, all of the assets (images, tilesets, meshes, and surfaces) are defined in Decks. You can think of a Deck as the geometry of an object. Decks hold the actual image data for a sprite, for example. They're not shown in the screen, until you reference them using a Prop. You can think of Decks as the Prop's drawing method.
There are many types of Decks
MOAIGfxQuad2D, for ...