O'Reilly logo

Microsoft® XNA® Game Studio 4.0: Learn Programming Now! by Rob Miles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required