Conclusion
This chapter presented Slapshot!, a fast-paced hockey game where the computer plays against you, the user. Slapshot! sends a dozen pucks whizzing around a hockey rink, and it's your job to keep them out of your goal while the computer tries to do the same with its goal. The pucks bounce off the walls of the rink, each other, and the blockers in front of the two goals. The computer player is not infallible by any means, but when those speeds get up there, it's a hard player to beat.
This game built on the Aquarium project of the previous chapter, adding a lot of interactive power. It uses many of the techniques you saw in the Aquarium project, such as starting a worker thread, using double buffering to avoid flickering, handing images ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access