Project: The Mini Adventure

The game at the end of this chapter is simple but fun. Showing you the game in progress is easier than describing it, so take a look at Figures 1.1 and 1.2, which show the game in progress. The computer asks the user a few questions and then makes a silly story based on the user responses.

Figure 1.1. The game begins by asking the user a few questions.


Figure 1.2. The user’s answers result in a silly story.


You can see that the game asks the user questions and then incorporates the answers to create a silly story. This game probably won’t sell a million copies, but it’s quite impressive for a first program. After reading this chapter, you will be able to write something like it.

Note that the user interface is Spartan–no flashy graphics or eye-catching buttons and menus. For now, you are concentrating on the underlying concepts. Those other elements will come soon enough, but they add complications to your life (which you don’t need just yet).

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

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