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 4. Our First Game with Moai

Adventure time! We're going to start working on our first game made with Moai SDK, a simple Concentration-like game. For this you'll need some understanding of Lua syntax, nothing too fancy, just the basics. If you've never used Lua before, it'd be a good idea to read some quick introduction material and have a syntax cheat sheet around when reading this book.

Concentration

For those readers who are not familiar with this game, let's describe it.

The game requires a set of tiles. There must be an even number of them. The tiles have figures (in pairs, since we're going to match them) on one side and a flat color or identical image on the other side (the back of the tile).

The gameplay is as follows:

  1. Place all the ...

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