In this chapter, you learn how to create a Visual C++ game called The Story of Mighty Molly. In this game, the player helps to tell the story by providing answers to questions. The questions are intended to collect specific information that is then used to fill in the story. This type of game is known as a madlib. Figures 5.1 through 5.5 provide a sneak preview of The Story of Mighty Molly and demonstrate the overall execution of the game.
By the time you have created this project, you'll have learned how to declare variables and how to specify their data type and scope. In addition, you will have learned how to work with conversion functions and String constants.
Figure 5-1: The Story of Mighty Molly game begins by presenting the player with five questions and then allowing him to tell the story by clicking a button.
Figure 5.2: An introduction tells the story of Mighty Molly.
Figure 5.3: The game issues an error if all text is not filled in.
Figure 5.4: A progress bar located on the status bar indicates when all required information has been collected.
Figure 5.5: Data input collected from the player is then plugged into the story line and displayed for the player to enjoy.