O'Reilly logo

Monkey Game Development by Michael Hartlef

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

And here they are… the game objects!

The game will have the following objects:

  • Layers
  • A title screen
  • A menu screen
  • A game background
  • Gems
  • The gem selector
  • Particle effects

Layers

Just like before, layers will help us to organize other objects and just work on the ones we need at a certain state of the game. These layers will be used in the listed order:

  • Background layer
  • Game layer
  • GFX layer
  • Game over layer
  • Menu layer
  • Score layer
  • Title layer

The background layer will hold some info text and the play field grid. The game layer will contain the various gems and the gem selector. The GFX layer holds the particle effects. To display the "Game Over" message, we will utilize the game over layer. To display the game menu, the menu layer will contain all the buttons ...

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