Chapter 7: Putting It All Together
Quiz Answers
What type of object is used to draw 2D text in XNA?
You need a
SpriteFont
object to draw 2D text in XNA.
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).
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.
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
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 ...
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.