Friday, October 9, 2009

24th tutorial is not online!

Welcome back!

I have finished and uploaded the 24th XNA Role Playing Game tutorial to my web site! This is the second part on adding a sprite for the player to control to the screen. I also had a request to add in the ability for when the player presses Escape on the action screen to display a pop up screen to ask if they really want to quit. It wasn't a hard thing to do so I added that in as well. I hope to have the third part on adding a sprite to the game on the site very soon October 12th, GMT, at the latest.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Thursday, October 8, 2009

New RPG Tutorial!

Welcome back!

I have uploaded the newest tutorial on creating a role playing game with XNA 3.0 called Eyes of the Dragon to my web site. In this tutorial I added in an animated sprite to the game. At the moment the sprite doesn't move with the map. If you scroll the map the sprite disappears off the screen. In next tutorial, which I already have most of the code for, I will cover moving the sprite on the screen and changing the animation when the sprite changes directions. I hope to have the next tutorial available on the 10th of October, GMT.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Thought I would post a screen shot

Welcome back!

I just thought that I would post a screen shot of the sprite on the game screen. Like I had posted in the last entry since I had done so much coding I decided to break it up a little and do things bit by bit. I will definitely have a tutorial up later on the 8th of October, which I guess is today now. This tutorial will go over creating the animation classes and rendering the sprite to the screen. This will not cover getting the sprite to move however. That will be in the tutorial after this one.


Animated Sprite


Tile engine with animated sprite

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Wednesday, October 7, 2009

Progress on current tutorials

Welcome back!

I have been doing quite a lot of coding on this tutorial and I'm afraid that it will be rather long. I'm thinking of splitting it up but everything is kind of integrated now and I'm not quite sure where to start. I created two classes, similar to the ones Nick uses is his tile engine tutorial series as I do like the method he uses, for sprite animations. There are a few differences however as I added in my own coding style to these. I got the sprite on the screen animating with out much difficulty. The problem was I was trying to simplify adding in the logic to having the map scroll with the sprite. Again, I like what Nick did in his tile engine series in using the matrix to transform the map instead of having to use the camera object to draw items on the map. You could just give them the position and set the transformation matrix. So it ended up that I had made quite a lot of changes to the game in order to do all of this and there is really still a fair amount that I want to do.

What I think I will end up doing is going back to the last version of Eyes of the Dragon and just focus on one item at a time, in interest of keeping the tutorials short and not throwing a lot at you at once.

One of my readers has been having some problems typing the code from the tutorials into his program and has been finding some minor errors that escaped my attention. I would really like to thank him for bringing them to my attention. I've been keeping track of any that he has found and making the proper changes to the tutorials and uploading them to my web site.

So, since I was away for most of the day today it looks like it won't be until tomorrow that I will have the next tutorial on the site for download.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Tuesday, October 6, 2009

What am I working on?

Welcome back!

I'm in the process of adding in a sprite for the player character to control. I made a slight alteration to the sprite that I put up yesterday. I put the character walking down in the first two frames, the second two are down, the third left and the fourth right.

I am using a method similar to the one that Nick Gravelyn used in his tile engine series for animating sprites. There will be differences of course. Instead of using a Dictionary and strings for the keys I will be using a List with an enum. I feel that this is simpler and easier to implement.

I hope to have the tutorial finished tomorrow but I can't guarantee that as there is a lot I have to do tomorrow.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Monday, October 5, 2009

Will be working on the rpg tutorial

Welcome back!

I will be working on the next tutorial for Eyes of the Dragon, the role playing game that I am working on with XNA. Like I said I am trying to add a sprite for the player to control. I downloaded the sprites that Nick Gravelyn used in his tile engine series. They are from the site evilmana.com for the game Last Guardian. I have finished modifying the one that I will be using for the tutorial. Just thought I would post what it looks like with the modifications I made.

Modified sprite from evilmana.com

It looks like it will fit well with the updated tile set I will be using. I hope to have the next tutorial finished by tomorrow evening or Wednesday evening by the latest.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Sunday, October 4, 2009

New XNA tutorials!

Welcome back!

I have just add three tutorials to my web site on creating a tile engine with XNA. These are general XNA tutorials and should work with both XNA 3.0 and XNA 3.1. They aren't very long but I they introduce the concepts of creating a tile engine. The first one concentrates on the tiling process. It takes an array of integers and 4 tiles and renders them on the screen. The second deals with scrolling the map in cardinal directions. What I mean by cardinal directions is the map will only scroll left, right, up and down. It will not scroll on diagonals. The third one implements a 2D camera system and allows the map to scroll at a constant speed in all eight directions, cardinal directions and the diagonals. I hope to have a fourth ready in the next couple of days as well as another on my role playing game series, Eyes of the Dragon. You can find the links to the tutorials on the XNA Tutorials page. (You will have to scroll down to the bottom. I will be adding pages specifically for tutorial series soon.)

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Saturday, October 3, 2009

Changes to the tile set

I made a change to the tile set. I really didn't have to but while I was looking for sprites to use with the game I couldn't find any 32 bit sprites to go with the tiles that I created. I know it is a minor thing but I thought I would try and at least have things that match. I downloaded the sprites from evilmana.com, the ones that Nick Gravelyn used in his tile engine tutorials. I will be making some changes to them. I also made another small change to the game. I increased the HUD to be 64 pixels high and the size of the tiles to be 64 pixels by 64 pixels. When I write up the next tutorial I will be adding that in. In any case this is what the map looks like now.


Updated Tile Engine



Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

22nd tutorial on creating an RPG!

Welcome back!

Well, I just finished uploading the newest tutorial on creating a role playing game with XNA 3.0 to my web site. I also fixed a few typos in in tutorials 4 and 6. In 4 I had spelled Components wrong in one of the using statements. In 6 I forgot to up the constructor of the ActionScreen class. When I created the new tile engine it required four parameters, the last two being the height and width of the map. I made that change. I will also let you know that the project.html page has been renamed to rpgtutorials.html. I just wanted to give the page a more descriptive name.

You can find the links to the tutorial on this page:
http://xna.jtmbooks.com/rpgtutorials.html

Good luck with your game programming adventures.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Friday, October 2, 2009

Tutorial is finished

The good news is I got the tutorial finished. I don't think that I will be able to have it up on my site this evening. It will definitely be up tomorrow though. I also know what I am going to work on next. I will be adding in a sprite that the player can control. Since I'm not a great artist I will have to go with what I can find on the web. So I encourage you to check back tomorrow for the newest tutorial on creating a role playing game with XNA.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Been writing the next tutorial

Welcome back!

I finished the coding that I wanted to do for the next tutorial and I have been busy writing it. I would like to have it finished this evening and up on my web site. There really isn't a lot of writing left to do so I'm hoping that it won't take too much longer. I will keep you posted on when the next tutorial is up and on my web site.

I'm also going to try and have a couple general XNA tutorials on my web site soon as well. Again, I will keep you posted on the details.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Thursday, October 1, 2009

Got some coding done

Welcome back!

I was working on some coding that I thought needed to be done. This was in the hope of making it easy for you to take the tile engine out of the game and drop it into another one. I got most of what I was hoping to do accomplished. I'm hoping to write up the tutorial on it tomorrow.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Wednesday, September 30, 2009

Introducing XNA Game Programming Adventures

Welcome back!

As I mentioned in an earlier post I've been updating my web site that hosts my XNA RPG tutorials. I am calling this new site XNA Game Programming Adventures. This site will host many XNA tutorials as well as the tutorials on creating a role playing game with XNA called Eyes of the Dragon. The new site is online now. I would recommend that you visit the sub domain that I created instead of the old URL. You can find XNA Game Programming Adventures here:

http://xna.jtmbooks.com/

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Monday, September 28, 2009

Trying to finish updating my site

Welcome back!

I did a lot of work on the new updated site to host my XNA tutorials. I just have one page left to finish and then I will put it up online. I will try and have a couple general XNA tutorials on the web site as well. I will have the first three in the series of creating a tile engine. I think I will have one other as well.

I might not be able to get to it tomorrow but I will try to.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Sunday, September 27, 2009

Making changes to my web site

Welcome back!

I have been working on giving my web site a nice clean fresh look. I like the design so far. I would like a better graphic for the image in the header. I will see what develops. I'm hoping to have the new version online tomorrow.

I have been busy the past two days with things not related to Eyes of the Dragon but I will be doing some coding on Eyes of the Dragon tomorrow. I have decided to find some simple sprites and add them into the game soon. I am thinking of making a change to the game itself. I have been thinking about it for a while now and the more I think about it the more I think it needs to be done.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Friday, September 25, 2009

21st tutorial on creating a role playing game!

Welcome back!

I have just finished adding the 21st tutorial on creating an RPG with XNA 3.0 to my web site! In this tutorial, like I've been mentioning, I created a custom Content Pipeline import, processor, writer and reader for Tileset objects created by the Tileset generator. I was going to go over how I created the Tileset generator but decided to do that in a separate tutorial. You can find the links to the tutorials on this page of my web site http://xna.jtmbooks.com/project.html

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Thursday, September 24, 2009

Not quite finished the tutorial

Welcome back!

I'm sorry to say I'm not quite finished the latest tutorial on creating a role playing game with XNA Game Studio 3.0. I was hoping to finish it today but it looks like it won't be finished until tomorrow. It will definitely be finished tomorrow though. I will have it up on the web site shortly.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Been busy writing the next tutorial

Welcome back!

I've been busy coding and writing the next tutorial. It is about 75% finished. I am hoping to have it finished and up on my web site for download shortly. I've mentioned before that in this tutorial I will be going into creating a Content Importer, Content Processor, Content Type Writer and Content Reader for the Tileset class. I made a generator to generate an XML file for the Tileset object. I was going to add into this tutorial creating the generator but instead decided to just describe the format of the XML file and write a separate tutorial on creating the generator later. I will make the source code for the generator available on my web site for download.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Wednesday, September 23, 2009

Working on next tutorial

Welcome back!

I have the Tileset generator finished pretty much. It will create an XML file that has all of the information needed to create a Tileset object. I'm going to work on creating the components needed to implement this in Eyes of the Dragon. I'm hoping to have it up and on my web site tomorrow evening.

I have a blog on Dream.In.Code where I am writing basic tutorials on XNA. At the moment I'm working on a tile engine system that would be able to be added to any game that would need a tile engine. This one I'm not making with Drawable Game Components. It will be an object-oriented tile engine though. You can find this blog here.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code

Tuesday, September 22, 2009

Finishing up the Tileset object generator

Welcome back!

I will be finishing up the Tileset object generator today and incorporating it into the game. I have decided to have the generator export everything to an XML file. I chose XML because there are great methods of importing and exporting XML documents with C#.

Jamie McMahon
-----------------------------
Proud member of Dream.In.Code