O'Reilly logo

3D Game Programming for Teens, Second Edition by Eric Grebler, Maneesh Sethi

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

Welcome Screens

Almost every game should have a Welcome screen that provides the player with information on how to start the game, how to control the game, and how to end it. Earlier in the book, we designed a Welcome screen that we will now incorporate into our program. The code we are going to use to load our Welcome screen will be a function (I’ll cover functions in greater detail in the next chapter) that we’ll include at the very beginning of our program. Start by opening demo13-11.bb, which is a program with several spheres pivoting around each other. Save the file with a new name in another location on your computer, and make sure the files sunskin.jpg, and orbit.jpg are saved in the same location. Make sure that the image welcome.bmp ...

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