Hardware Reference
In-Depth Information
green grass, for example, or illed coloured balls or bats. You could even draw a picture with a
painting package or photo-editing package to act as the background, or you might want to
include a net or white lines on the court. You could have diferent sounds for a serve and a
return, which is easy because they are called up in diferent places in the code. You can
upgrade the sounds in the single-player game to match what you did in the two-player game.
You might want to change things like the number of balls in a game or even the scoring to make
it more like a real game of tennis, with a player winning a game only when he or she is two
points ahead. You can even use the real tennis terms of advantage and deuce in the score box.
I have deliberately left in the code that alters the bounding box from the cursor keys. How
about a variation of the game that allows the serving player to alter the size of the court as
the serve takes place? Or how about a court that automatically shrinks as the rally gets lon-
ger? Basically, the whole game is one of anticipating where the ball will end up, and by chang-
ing the court size only slightly, you can make it more diicult to judge as you don't have any
previous experience to go on.
It is only a small step from this game to making a “knock the bricks out of a wall” game with
all the variants that can bring. It's within your grasp to do this now if you understand the
basics of what was done here.
Search WWH ::




Custom Search