Testing the Game


You've finally arrived at the most fun step in the construction of a game: testing! Testing the Battle Office game is quite interesting because a fair amount of things are going on in the game. Figure 16.2 shows the game at the start, with one guy jumping from behind his desk to give you a quick scare. Notice that your bull's-eye target is near the guy ready for you to click and fire at him.

Figure 16.2. The Battle Office game gets started quickly with a guy jumping from behind an office desk.

graphics/16fig02.jpg

Clicking the mouse with the target over the guy results in a hit, which causes the pow sprite to be displayed on the screen, as shown in Figure 16.3.

Figure 16.3. The pow sprite is displayed whenever you score a hit.

graphics/16fig03.jpg

It won't take long for one of the moving guys to appear in the hallway near the top of the game screen. These guys are a little tougher to hit because they are moving, but it's still not too hard. Of course, the game doesn't really get tough until all the guys start appearing at the same time. Figure 16.4 shows an example of how the guys can start getting overwhelming.

Figure 16.4. As the game progresses, the guys will start overwhelming you, which makes it harder to hit them all.

graphics/16fig04.gif

Once five guys get away, the game ends. Figure 16.5 shows the end of the game, which involves displaying the game over image on the screen on top of the other game graphics.

Figure 16.5. When five guys get away, the game ends and the game over image is displayed.

graphics/16fig05.jpg

I really don't encourage you to think of office co-workers as targets, but hopefully you can see the humor in the Battle Office game. If not, at least you can appreciate the game development techniques that went into making the game a reality.



Sams Teach Yourself Game Programming in 24 Hours
Sams Teach Yourself Game Programming in 24 Hours
ISBN: 067232461X
EAN: 2147483647
Year: 2002
Pages: 271

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