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

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: “We’re creating a method called Game:start() that will take care of initializing everything and controlling the game loop.”

A block of code is set as follows:

module(“Game”, package.seeall)
GRID_COLS = 5
GRID_ROWS = 4
GRID_TILE_WIDTH = 62
GRID_TILE_HEIGHT = 62
BACK_TILE = 1

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

WORLD_RESOLUTION_X = 320
WORLD_RESOLUTION_Y = 480
SCREEN_RESOLUTION_X = 2 * WORLD_RESOLUTION_X SCREEN_RESOLUTION_Y = 2 * WORLD_RESOLUTION_Y ...

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