Chapter 11. A Game as a C# Program

In this chapter, you will

  • Find out how Microsoft XNA games are actually C# programs.

  • Start to create a game from the contents of a grocery bag.

  • Make your game display fit correctly on the screen.

  • Get the first components of a game running.

Introduction

At the moment, you know quite a lot about how XNA works and how to use C# language constructions to control the facilities that XNA gives you. You have created games by investigating what you need to do inside the game class to get the effects that you want on the screen. Now it’s time to step back a little and consider how the XNA Framework and the C# language fit together and just what a C# program is. This helps you understand how to construct games of your own and ...

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.