ABSTRACT

This chapter provides an overview of the Eight-Ball Pool End Game, including how to play it, what physics we will need, and the code structure. In the Eight-Ball Pool End Game, the code is organized into a Visual Studio 10 solution that has three projects called Engine, Tools, and My Game. Project My Game consists of seven code files and eight header files containing declarations and definitions for the six classes. The main control structure in this game code is the ProcessFrame loop. The chapter discusses on Render World, and Object World. The Render World takes care of the rendering tasks that are particular to the game. In this game, they are the pool balls that live under the care of a Ball Manager derived from a base Object Manager class. The chapter focuses on the objects in the game, which are obviously pool balls. It provides with some exercises for the reader.