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

Game screen

The game screen is composed of the background image, the two info text objects for the game score and the FPS value. Also there are two buttons to reset or exit the game.

Click here — Adding buttons

The buttons could be created from images, but they are drawn into the background image. To detect a touch event, you can use the ZoneBox object.

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