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

We need to insert calls to all the methods we have created.

Insert calls to CreateLayers, CreateBackgroundScreen, CreateTitleScreen, and LoadSounds.

atlas = LoadImage("bo_tiles.png")
font1 = eng.LoadFont("bo_font")
CreateLayers()
CreateBackgroundScreen()
CreateTitleScreen()
LoadSounds()
Return 0
End

What just happened?

We just finalized the OnCreate method. The buttons are not functional at this moment, but the game will display the title screen when you run it.

It will probably look as follows, at the moment:

What just happened?

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