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

The game objects

Our Sokoban clone doesn't have many objects, but we should still go through them one by one. Ladies and gentleman... the following are the objects in our game

Layers

In this game, we will use only three layers (groups). In version 1.30 of fantomEngine, the default layer was introduced. We will use this as our background layer, so we need to create only two more. The layers are as follows:

  • Default layer
  • Game layer
  • Title screen layer

The default layer

The default layer will only hold an info text object that displays the number of crates for a level and how many are on their target position.

The title screen

The title screen is composed of a colored rectangle and two info text objects that will let the player know how to start and exit ...

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