June 2005
Beginner to intermediate
336 pages
6h 29m
English
The Slapshot! application.

Let's get interactive. Chapter 1, “Making Fish Swim in the Multithreaded Aquarium,” was all about the Aquarium application, which is nice to watch but doesn't really let you get in on the action. This chapter is on Slapshot!, an interactive hockey game, where you actually have to do something active, or you'll lose. The code developed in Chapter 1 is going to be leveraged for this chapter, because Slapshot! uses hockey puck sprites, much like the fish in the aquarium—only the pucks move faster.
You can see what this game looks like in Figure 2.1. The pucks shown in this ...
Read now
Unlock full access