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

Setting up the game objects

For this game, we can skip a few things. For example, the OnRender method is already set like we need it. Another thing is the background layer. We will use the default layer of Monkey. We will define it during the OnCreate event, as it will only contain one text object. But let's concentrate on what have to create now.

Slice over slice—game layers

For this game, we only need two extra layers—one for the game itself, and one for the title screen, so we can switch it on or off with one statement.

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