Datasheet

From now on you can create Xbox 360 projects and deploy them to your console, which can be done in
the XNA Studio build menu. If you start to debug a project with F5 it will get deployed, too, and you can
directly debug it on your console, which is pretty cool because you can step through code on your PC
and immediately see the results on your Xbox 360 (kind of multi-monitor developing for free). Read
more about running your first game in Chapter 2.
Getting Started
You have everything set up now and it is time to finally do some coding and get your hands dirty. In this
chapter you will just create a simple project with the help of the XNA Studio templates. Then you will
change the code a little and add a little functionality to the
Update and Draw methods. In the next chap-
ter, you create your first game after you learn about the
SpriteBatch class.
Your First Project
Create a new XNA project in XNA Studio by clicking File New Project. Now select Windows Game and
enter a name for your first project — for example, “Hello World” — or just leave it as “WindowsGame1” (see
Figure 1-10). As you can see, you can also create games based on the starter kits quite easily from here, too.
You can see now that a new project was created and it contains two source files: Game1.cs and
Program.cs. The Program file basically just contains the following three lines of code:
using (Game1 game = new Game1())
{
..game.Run();
} // using
Figure 1-10
15
Chapter 1: Introducing XNA
61286c01.qxd:WroxPro 1/21/08 3:44 PM Page 15