Chapter 12. Games, Objects, and State

In this chapter, you will

  • Discover a better way to structure your programs.

  • Add some bread that you can use to bash the cheese around on your screen.

  • Give yourself some targets to hit the cheese at.

Introduction

You have the basis of a little game at the moment. You know how to place objects on the screen and manage their movement. You also know how to make sure that the games you create work with different display sizes and resolutions. In this chapter, you develop the game play further, add some more sprites, and create a game that has proper game-play.

Adding Bread to Your Game

You can continue working on the 03 Overscan Bouncing Cheese sample code that you were using in Chapter 11. You need to add some bread ...

Get Microsoft® XNA® Game Studio 4.0: Learn Programming Now! 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.