Skip to Main Content
Learning XNA 3.0
book

Learning XNA 3.0

by Aaron Reed
November 2008
Beginner content levelBeginner
510 pages
16h 24m
English
O'Reilly Media, Inc.
Content preview from Learning XNA 3.0

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning XNA 4.0

Learning XNA 4.0

Aaron Reed
Beginning C# 7 Programming with Visual Studio 2017

Beginning C# 7 Programming with Visual Studio 2017

Benjamin Perkins, Jacob Vibe Hammer, Jon D. Reid

Publisher Resources

ISBN: 9780596154905Supplemental ContentErrata Page