
CHAPTER 1 ■ GETTING STARTED WITH XNA 3.0
23
line that adds the QuatCam GameComponent class. The remainder of the code doesn’t need to
be changed, because all it needs is the ICameraInterface service, provided by one of the
GameComponent classes.
The Code
All the code is available for download at www.apress.com.
The Game1 constructor displayed previously is all the code needed to get your camera and bill-
boarding working. The Initialize,(Un)LoadContent, Update, and Draw methods of your main
Game class are empty.
Whenyourcameracomponentiscreated,itsubscribesitselftotheICameraInterface
service:
public QuakeCameraGC(Game game) : base(game) ...