XNA Game Programming Adventures has moved!

New location is http://gameprogrammingadventures.org. Please update your book marks. You will be automatically redirected in 5 seconds.



XNA Game Programming Adventures
NEW XNA RPG Tutorials

This page is for my new XNA RPG Tutorials series. On this page you will find the tutorials in PDF format. If you find an error in a tutorial, have a request for future tutorials in the series, you can post them on my forum. If you are posting errors please give the class and region the error is in. This will make it much easier for me to find the problem.

With the release of XNA 4.0 and Microsoft trying to have developers use XNA 4.0 instead of XNA 3.x I've migrated the tutorials from XNA 3.x to XNA 4.0. Check out the XNA 4.0 RPG tutorials page for those tutorials.

Part 1 - Core Game Components
In this tutorial I get started on handling the state of the game, using a screen manager. I also add in a menu component and an input component.
Part 1 - Core Game Components
Part 1 - Core Game Components (Zipped)

Part 2 - More Core Game Components
In this tutorial I add in another core game component, a background component. I also add in another game screen and demonstrate how to switch between game screens. The last thing I did was add in support for the Xbox 360 game pad. I also introduced the concept of a session for starting, loading, and saving games.
Part 2 - More Core Game Components
Part 2 - More Core Game Components (Zipped)

Part 3 - Tile Engine
In this tutorial I add in the tile engine. I added in a multi-layered tile engine with the ability for the tile maps to use mulitple tile sets.
Part 3 - Tile Engine
Part 3 - Tile Engine (Zipped)

Part 4 - Tile Engine - Part 2
In this tutorial I did a little more work on the tile engine. I show how to scroll the map and how to scroll it at a uniform rate in all directions. I also demonstated how to have multiple layers and multiple tile sets on a single map.
Part 4 - Tile Engine Part 2
Part 4 - Tile Engine Part 2 (Zipped)

Part 5 - Session and Animated Sprite
In this tutorial I moved on to adding in the idea of a session to hold the data about your game. I also added in classes to handle animated sprites with a sprite for the player to control.
Part 5 - Session and Animated Sprite
Part 5 - Session and Animated Sprite (Zipped)

Part 6 - Character Generator and GUI Controls
I added a new screen to the game in this tutorial to create characters. To help with creating characters and other screens for the game I added in some simple GUI controls and a class to manage the controls on the screen.
Part 6 - Character Generator and GUI Controls
Part 6 - Character Generator and GUI Controls (Zipped)

Part 7 - Title Screen and Storage
This tutorial adds in a Title Screen like the ones you will find on Xbox 360 games. It also works with the XNA Storage classes for selecting a Storage Device and saving a game.
Part 7 - Title Screen and Storage
Part 7 - Title Screen and Storage (Zipped)

Part 8 - Characters and Rendering
Characters are an important part of a role playing game and in this tutorial I add in a couple base classes for characters in the game. I also remodelled the rendering in the game a little and made the tile engine more efficient.
Part 8 - Characters and Rendering
Part 8 - Characters and Rendering (Zipped)

Part 9 - Character Classes Continued
I continue work on the character system in this tutorial. I also created a simple editor to be able to read in character class information at run time rather than have it hard coded. At the same time I refactored things a little to separate the logic for different parts.
Part 9 - Character Classes Continued
Part 9 - Character Classes Continued (Zipped)

Part 10 - Character Classes Continued
I continued on with character classes in this tutorial and updating the character generator screen. I also add in a new control, a picture box, and different sprites for the gender and class combinations.
Part 10 - Character Classes Continued
Part 10 - Character Classes Continued (Zipped)

Part 11 - Items
In this tutorial I added in a few basic classes for items in the game. There is the base class that all other items will inherit from as well as classes for weapons, armor, and shields. I also added in a class to manage the items in the game and remodeled the Session class.
Part 11 - Items
Part 11 - Items (Zipped)

Part 11.1 - Items Supplemental
This supplemental tutorial extends the item classes and the item manager class a little. I found a few small short comings when I was working on the editor. I did also extend the item manager class as well.
Part 11.1 - Items Supplemental
Part 11.1 - Items Supplemental (Zipped)

Part 12 - Reusable Class Library
This tutorial covers moving some classes to a reusable class library. The class library allows you to reuse code much easier. If you change something in the class library it can be reflected in any project that uses the class library.
Part 12 - Items Supplemental
Part 12 - Reusable Class Library (Zipped)



Good luck with your XNA game programming adventures.

Jamie McMahon



Site Search

Custom Search


Latest News

June 10, 2016
XNAGPA is moving soon to another site.
February 10, 2012
3rd Brick Breaking tutorial!
August 12, 2011
31st XNA 4.0 RPG tutorial!
August 11, 2011
30th XNA 4.0 RPG tutorial!
July 27, 2011
29th XNA 4.0 RPG tutorial!
July 20, 2011
28th XNA 4.0 RPG tutorial!