Test Your Knowledge: Quiz

  1. What are the steps in an XNA game loop?

  2. If you wanted to load a Texture2D object, in which method should you do that?

  3. What line of code should you use to change the framerate of an XNA game to 20 fps?

  4. What should you pass in as the parameter of Content.Load when loading a Texture2D object?

  5. Fact or fiction: the content pipeline will let you know at compile time if you add an image to your project that it cannot parse.

  6. You're drawing a sprite, and you want the background to be transparent. What steps do you need to take to draw it with a transparent background?

  7. You have two sprites (A and B), and when they collide you always want A to be drawn on top of B. What do you need to do?

  8. What are the things you need to keep track of to cycle through a sprite sheet?

  9. In the United States of America, which month is National Horseradish Month?

Get Learning 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.