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 2. Programs, Data, and Pretty Colors

In this chapter, you will

  • Explore how games actually work.

  • See how data is stored in a program.

  • Discover how colors are managed on computers.

  • Find out about classes and methods.

  • Write some code that controls color.

  • Write some code that makes decisions.

  • Create a funky color-changing mood light.

Introduction

You now know how to create a Microsoft XNA program and run it. Your program only turns the screen blue, but you could call it a start. Next, you are going to figure out how game programs are constructed. Then you’ll play with colors and find out how XNA stores color information and how C# stores data.

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