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

Inside the OnCreate event of the game, most objects will be created and initialized. Some objects such as the atom elements will be created at the start of a game and when we reset the game field.

Sound effects

Let's start with sounds. Creating your own method to load just one sound is kind of overkill, but if you want to extend the game later on, you know then in which method you should load new sounds.

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