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

Methods for the update process

Now that we have the methods that manage the tile map, we can think about detailing the OnUpdate event of the game class. For this, we need some more methods that will help us during this state of the game.

Starting a new game

It is always good practice to have the start of a new game or level done by a function or method. Sometimes, a lot of variables have to be set, and so let us do that here too.

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