I was recently asked to write a guide to getting started with XNA to be published in a guide we will be distributing this year. As I was writing it I was thinking this would be great for the blog so now its finished here it is!
NB: If you don't know what XNA is and would like to find out more then check out creators.xna.com
Getting started with XNA Game Studio
Before you can develop games for XNA you need to download and install Microsoft Visual C# 2005 Express Edition and XNA Game Studio Express. This will give you the IDE and allow you to code the game and then build and deploy it.
Once you have installed the above you can navigate to XNA Game Studio on your start menu and fire up the application:
XNA on the Xbox 360
The XNA platform can not only run on Windows but also the Xbox 360, below is a guide to setting up the Xbox 360 for XNA and deploying games onto the console.
For the purpose of this part of the guide we will assume you already have XNA Game Studio fully set up and working on your PC (if not please see the above ‘Getting started with XNA Game Studio’ guide).
Building your first game
XNA Game Studio Express comes with a game project pre-installed. The project is called Spacewars and is a complete XNA game ready to be compiled. However because you have the source code for the game it is an excellent way to start getting used to XNA Games Studio and to write your own code by implementing some new features. The below guide explains how to get started with the Spacewars project and demonstrates how to implement a new feature in the game.
This changes the mesh for player one’s second ship option to the DirectX resource located in /Content/Models/astoroid2.x
This changes the texture to the resource located here: /Content/Textures/astoroid2.tga
Resources