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

Chapter 5. Showing Images on the Screen

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.

Introduction to Decks and Props

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 ...

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