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:

What just happened?
..................Content has been hidden....................

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