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

Time for action — finalizing the OnCreate method

You will now add the calls to all these new methods we have created.

  1. First, add a call to LoadSounds and create the layers through a call of the CreateLayers method.
    font1 = eng.LoadFont("ad_font")
    LoadSounds()
    CreateLayers()
    
  2. Create the background screen and the clouds that will float around the screen.
    CreateBackgroundScreen()
    CreateClouds()
    
  3. Last, but not least, add the info text objects and set up the title screen.
    CreateInfoText()
    CreateTitleScreen()
    Return 0
    End
    

What just happened?

You have finalized the OnCreate method of the game class. If you build and run this game now, you will see something like the following screenshot, on the title/menu screen:

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