APPENDIX CCheck Your KnowledgeAnswers
This appendix contains the answers to the questions in the "Check Your Knowledge" sections of Chapters 2 through 6.
Chapter 2
- The
SpriteBatch
object is used to draw textures to the screen. - The
Initialize
method is where you set the initial state and values of objects and fields unrelated to content. - You change the background color of the game by modifying the color specified in the
Draw
method atgraphics.GraphicsDevice.Clear(Color.CornflowerBlue)
. - The
Update
method is used to change the state of your game on an ongoing basis. - The game runs in a default scenario of a fixed-step time loop. That means that every 1/60 second, the
rotation
variable will be incremented by0.02
. Since therotation
variable is ...
Get Zune Game Development Using XNA 3.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.