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