PROJECT PREVIEW: THE SPEED TYPING GAME


The game project that you learn how to develop for this chapter is the Speed Typing game. The Speed Typing game challenges the player to type as quickly and accurately as possible. The game begins by displaying a sentence. The player must reproduce the sentence without errors. The Speed Typing game only gives the player 15 seconds to type the complete string. If the player is successful, he advances to the next level, which contains another sentence to type. If the player makes a typo or runs out of time before typing the complete sentence, the game registers a strike against him.

At each successive level, the sentences become more and more challenging to type. The game ends when the player either manages to complete five levels or accumulates three strikes. At game's end, the player is ranked as having the skill level of beginner, intermediate, advanced, or expert. Figures 3.1 through 3.5 demonstrate the overall flow of the Speed Typing game.

image from book
Figure 3.1: The Speed Typing game begins when the player clicks on the Go button.

image from book
Figure 3.2: Players advance by typing the required text string within the allotted amount of time.

image from book
Figure 3.3: Players who fail to type the required text in time receive a strike.

image from book
Figure 3.4: Players who make a typo when keying in the required text string receive a strike.

image from book
Figure 3.5: The player's typing skill level is analyzed and displayed at the end of gameplay.

As a result of designing the user interface and programming the code for this game, you will have a much better understanding of how Windows GUIs work. This includes the opportunity to gain experience implementing several techniques that enhance user interfaces and make applications simpler to use.




Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
ISBN: 735615381
EAN: N/A
Year: 2005
Pages: 131

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net