Chapter 10. Using C# Methods to Solve Problems

In this chapter, you will

  • Use image manipulation to write a game you might like to play.

  • Discover how to create and use your first C# methods.

  • Take a look at test-driven development.

  • Make some mistakes and discover how to fix them.

Introduction

Your programming skills are coming along. Your programs can store different kinds of numbers, do things with them, and even make decisions. You also know how to add image assets to your games and display them on the screen.

Now you create a game based on the image manipulation. To make your life easier, you create some C# methods of your own, and you also look at a development technique called test-driven development.

Playing with Images

In Chapter 4, you discovered ...

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.