Game Development for Xbox 360, PC + Windows Phone 7

Chapter 5: Errata / Missing Code Highlights

rated by 0 users
Answered (Verified) This post has 1 verified answer | 1 Reply | 2 Followers

Top 10 Contributor
Male
6 Posts
alvin posted on 17 Nov 2009 9:49 AM

Hey Chad,

Here are some errors I found today while working them through with a class.  I found it strange that I didn't catch it before.

Page 98:

The code referred to at the bottom of the page should be in the demo's Draw method, not the Update method.

Pages 99 - 103:

Code samples are using the playerIndex in the GamePads arrays.  The playerIndex member field is not introduced until later on page 106 for the Split Screen demo.

Page 102 - 103:

We should create an overridden Constructor for the FirstPersonCamera class that looks something like this:

public FirstPersonCamera( Game game ) 

: base( game )

{}

Without the above, the code would not compile and will give an error.

Hope this helps,

Alvin Tang

Answered (Verified) Verified Answer

Top 10 Contributor
Male
136 Posts

Thanks Alvin!  Your help is always appreciated.

Page 1 of 1 (2 items) | RSS
© 2011 Chad Carter. All rights reserved.