Old XNA Tutorials

These tutorials should be enough to get you going with XNA.

I really want to make these tutorials as useful to you as possible, so if you have any comments, please feel free to add them at the bottom of this page.

I'm in the process of updating these tutorials to the newest versions of XNA. The latest version of XNA is 3.0. I'm trying to get these tutorials up to that version, but I'm still working on it. I've made a table of which version each tutorial is set up for that you can look at to see which tutorials have been updated.


Tutorial Categories on this Page

InformationBasics2D3DAudioPackagingPhysicsMouse InputGuitar Input
information100.png

Introduction

Here is an introduction to XNA. This will give you an idea of how XNA can help you make your game! I would recommend starting here, if you haven't done anything with XNA before.
Introduction to XNA


basics100.png

1 - Setting Up XNA

Gets an environment set up that can be used to make games with XNA.
1 - Setting Up XNA


basics100.png

2 - Creating an XNA Project

Shows you how to create a new XNA Project from the built in template.
Creating an XNA Project


basics100.png

3 - Graphics Device Setup

Shows you how to get the graphics device set up, so that it can be used for drawing.
3 - Graphics Device Setup


basics100.png

4 - Effects and Effect Files

Teaches you what you need to know about effect files so that we can use effects in our programs.
4-Effects.pdf


3d100.png

5 - Drawing Triangles

Shows you how to draw your first triangle.
5-Triangles.pdf


basics100.png

6 - World Coordinates

Explains what world coordinates are, and gets our program ready to use them.
6-WorldCoordinates.pdf


3d100.png

7 - Transformations

Explains how to use transformations (rotations, translations, scaling) and how to put them in your code.
7-Transformations.pdf


3d100.png

8 - A Little Practice

Gives us a little more practice working with the things we know before rushing on to the next big thing….
8-ALittlePractice.pdf


3d100.png

9 - Index Buffers

Shows you how to use Index Buffers.
9-IndexBuffers.pdf


3d100.png

10 - Texturing

Shows you how to put textures on triangles. The tutorial creates a "backdrop" for an Asteroids game, since that is where these tutorials were originally going, but I figure you guys are smart enough that you can come up with your own creations. But a backdrop might be nice, and texturing will be very useful….
10-Texturing.pdf


3d100.png

11 - More Texturing

Isn't texturing so much fun? This time we'll try texturing the icosahedron that we made in the earlier tutorials.
11-MoreTexturing.pdf


3d100.png

12 - Lighting

Lighting is a significant concept in 3D graphics. This tutorial will discuss the basics of lighting, as well as how to get it into your program. There is really a lot of math involved in lighting. We won't be discussing the math during this tutorial, but later I will post a tutorial covering the math of lighting, so that when you want to write your own effects, you can do that.
12-Lighting.pdf


3d100.png

13 - Using 3D Models

In this tutorial, we will look at how to load a 3D model into your game and draw it.
13 - Using 3D Models


audio100.png

Audio in XNA

The next few tutorials (and some later on as well) are about doing audio in XNA. There's a lot to talk about, so this tutorial will give you an introduction to how audio works in XNA.
Audio in XNA


audio100.png

14 - Using XACT

This tutorial shows you the basics of using XACT, Microsoft's Cross-Platform Audio Creation Tool. XACT will get our audio in a format that makes it easy to use in XNA.
14 - Using XACT


audio100.png

15 - Playing Sound

Now that we've used XACT to define a sound project, it will be easy to play sounds in XNA. This tutorial will cover playing sounds in XNA.
15 - Playing Sound


basics100.png

16 - Basic Matrices

If you have been going through these tutorials in order, you probably already know a lot about matrices. However, if you are just looking for a tutorial to help you understand how matrices work in XNA, then this tutorial is for you. Even if you have been going through the tutorials in order, this tutorial will help you better understand how matrices work, and will get you better prepared for future tutorials.
16 - Basic Matrices


3d100.png

17 - Line Drawing

We've talked about how to draw triangles in lots of different ways. This tutorial will show you how to do some simple line drawing, both in line lists and line strips.
17-LineDrawing.pdf


2d100.png

18 – Introduction to 2D Graphics

Here's a brief introduction to a few of the things that we'll be doing with 2D graphics.
Tutorial 18 - Introduction to 2D Graphics


2d100.png

19 – Sprite Batches

Sprite Batches are the most important thing in 2D graphics. That's how you draw nearly everything. This shows you the basics of using them.
Tutorial 19 - Sprite Batches


2d100.png

20 – Drawing Text with Sprite Fonts

This tutorial shows you how to draw 2D text on the screen.
Tutorial 20 - Drawing Text with Sprite Fonts


2d100.png

21 – Texture Atlases

Discusses how to do 2D animation using texture atlases.
21 - Texture Atlases


2d100.png

22 – Rotating Sprites

Discusses how to rotate sprites…. Not too hard.
22 - Rotating Sprites


2d100.png

23 – Additive Blending with Sprites

This tutorial shows you how to do additive blending with sprites in 2D. It is a good first step for tutorial 31: Basic Particle Engines
23 - Additive Blending with Sprites


audio100.png

24 - 3D Audio Effects - Location

3D Audio gives players the impression that sounds are happening in 3D space around them. This tutorial shows you how to set up your project to do this.
24 - 3D Audio Effects - Location


audio100.png

25 - 3D Audio Effects - Attenuation

This tutorial shows you how to make sounds seem like they are coming from farther away, by performing volume attenuation.
25 - 3D Audio Effects - Attenuation


3d100.png

26 – The BasicEffect Class

Discusses the basics of effects, and how to use the BasicEffect class to do simple but powerful rendering.
26 - The BasicEffect Class


3d100.png

27 – BasicEffect Lighting

Discusses how to do lighting with the BasicEffect class.
27 - BasicEffect Lighting


3d100.png

28 - BasicEffect Fog

Discusses how to do fog using the BasicEffect class.
28 - BasicEffect Fog


3d100.png

29 - 2D and 3D Combined

This shows you how to get 2D and 3D stuff to display together in the way that you want it.
29 - 2D and 3D Combined


3d100.png

30 - Viewports

Discusses how to use viewports to make a game that has a different view for each player.
30 - Viewports


2d100.png

31 - 2D Particle Engines

This tutorial goes through the steps of building a 2D particle engine. It is a longer tutorial, but particle engines and particle effects are quite powerful and add a lot to your game.
31 - 2D Particle Engines


basics100.png

32 - The Content Pipeline

This tutorial explains how the content pipeline works. This is nice to look over before making an extension to the content pipeline, which is the next tutorial.
32 - The Content Pipeline


basics100.png

33 - A Simple Content Pipeline Extension

This is kind of a longer tutorial which takes you through the steps of creating a custom extension to the content pipeline. Be sure to go over the content pipeline tutorial before digging into this! (8 parts total.)
33 - A Simple Content Pipeline Extension


physics100.png

34 - Collision Detection

This tutorial goes through the basics of collision detection.
34 - Collision Detection


mouse100.png

35 - Picking

Picking is a technique used in games for finding out what objects the user clicks on. This tutorial goes through an easy way of implementing this in XNA.
35 - Picking


3d100.png

36 - Simple 3D Animation

This tutorial covers the simplest of methods for doing animation in 3D.
36 - Simple 3D Animation


3d100.png

37 - Mesh by Mesh Animation

This tutorial covers a more advanced method for doing animation in 3D. Instead of moving around the entire model, we will move around each individual mesh separeately to get some cool effects.
37 - Mesh by Mesh Animation


3d100.png

38 - Bone Animation

This tutorial covers another advanced method for doing animation in 3D by using the model's bone structure. However, I haven't uploaded it yet!
38 - Bone Animation


packaging100.png

39 - The Basics of Publishing Your Game

This tutorial shows you the various methods for distributing your game, which are discussed in the next few tutorials.
39 - The Basics Publishing Your Game


packaging100.png

40 - Packaging your Game for Other XNA Users

This tutorial goes through an easy way of packaging your game for other XNA users.
40 - Packaging your Game for Other XNA Users


packaging100.png

41 - Packaging your Source Code for Other XNA Users

This tutorial goes through an easy way of packaging your source code for other XNA users.
41 - Packaging your Source Code for Other XNA Users


packaging100.png

42 - Using ClickOnce to Distribute your Game

This tutorial goes through how to use ClickOnce to distribute your game to people, even if they don't have XNA Game Studio. This is probably the best way to get your game out to people.
42 - Using ClickOnce to Distribute your Game


packaging100.png

43 - Other Ways to Distribute your Game

There are a few other ways to distribute your game that weren't discussed in the previous tutorials. This tutorial will talk about these ways.
43 - Other Ways to Distribute your Game


guitar100.png

44 - Guitar Input (Coming Soon)

I'm currently working on a tutorial for input from the guitar (you know, like Guitar Hero). It will give you an easy way to read input from the guitar, in a manner similar to the standard game pad. You can follow the tutorial and build your own input, or just use my version when completed.
44-GuitarInput.pdf


audio100.png

45 - Playing .mp3 and .wma Files in XNA 3.0

This tutorial will show you how you can play .mp3 and .wma files in XNA. It is probably easier than XACT, although it only works under the XNA 3.0.
45 - Playing .mp3 and .wma Files in XNA 3.0


Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +