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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.22.107