In this chapter, you will learn how to create a Visual Basic game called the Story of Mighty Molly. In this game, the player helps to tell the story by providing answers to questions that are designed to collect specific data that is then used to complete the story. Figures 5.1 through 5.5 provide a sneak preview of the Story of Mighty Molly and demonstrate the overall execution of the game.
Figure 5.1: The Story of Mighty Molly game begins by prompting the player to click on each of six buttons that are designed to collect player input and tell the story.
Figure 5.2: Players' input is collected using the InputBox() function.
Figure 5.3: Buttons change colors to indicate that the player has already supplied their associated input.
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.
By the time you have created and run this game, you'll have learned how to declare variables and how to specify their data type, scope, and lifetime. In addition, you will have learned how to work with conversion functions and String constants.