O'Reilly logo

Learning XNA 3.0 by Aaron Reed

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7: Putting It All Together

Quiz Answers

  1. What type of object is used to draw 2D text in XNA?

    • You need a SpriteFont object to draw 2D text in XNA.

  2. How is a background image different from an image used to represent a player or object in the game?

    • It really isn't any different. The underlying concept is exactly the same—you're drawing a 2D image on the game window. The background image in this case doesn't animate, and the file containing the background image contains only that image (in contrast to the player sprites, which are animated; the files used for those objects contain sprite sheets with multiple images forming an animation sequence).

  3. What are game states and how are they used?

    • Game states represent a way to indicate the current status of the game as a whole or some activity within the game. Game states are used to transition from splash screens to gameplay, from gameplay to end-game screens, and so on.

  4. Where, according to Dwight Schrute, does health care not exist?

    • Dwight Schrute from The Office television show expresses his thoughts on healthcare in the episode titled "Health Care."

      Dwight: "I don't believe in coddling people. In the wild, there is no health care. In the wild, health care is 'Ow, I hurt my leg. I can't run, a lion eats me and I'm dead!' Well, I'm not dead. I'm the lion. You're dead!"

Exercise Answer

  1. Change the behavior of the skull power-up (or power-down, if you prefer) to freeze the player for 2 seconds rather than reduce the player's speed by 50% for 5 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required