Get Some

General => Technology & Hardware => Topic started by: Apostrophe Spacemonkey on December 23, 2008, 11:45:52 am

Title: Making Games with Microsoft XNA Game Studio
Post by: Apostrophe Spacemonkey on December 23, 2008, 11:45:52 am
Hi, i'm thinking of doing some tutorials for learning how to makes games with Microsoft XNA Game Studio, a package that allows you to make games with Visual Studio.

I was thinking about a step by step tutorial on how to make a simple space invades type game. I think a few people would be interested, you don't really need that much experience.

Also there not really much of a hobby game development community, I would like to see more people interested in it and I think this would be a good way to start.

Post if your interested.

Getting Started
First install Visual C# Express (Or a full copy of Visual Studio if you can get hold of it)
Visual C# 2008 Express (http://www.microsoft.com/express/vcsharp/)

Then download and install
XNA Game Studio 3 (http://www.microsoft.com/downloads/details.aspx?FamilyId=7D70D6ED-1EDD-4852-9883-9A33C0AD8FEE&displaylang=en)

That should be all you need, for now.
Title: Microsoft XNA Game Studio
Post by: HyperBlade on December 23, 2008, 07:37:57 pm
I would be keen, but i've got a shit load of little jobs to do so not sure how much effort i can put in, but will give it a go.

Already have visual studio, downloading xna now.
Title: Microsoft XNA Game Studio
Post by: Virtuality on December 24, 2008, 02:06:38 am
http://www.naturalmotion.com/morpheme.htm when you get to that stage, if you do

if any of you guys ever move onto 3d projects i'd be interested in doing some modeling
Title: Microsoft XNA Game Studio
Post by: Apostrophe Spacemonkey on January 17, 2009, 05:42:37 pm
Quote from: Virtuality;859389
[url]http://www.naturalmotion.com/morpheme.htm[/url] when you get to that stage, if you do

if any of you guys ever move onto 3d projects i'd be interested in doing some modeling


That would be awesome.

You can do some pretty cool stuff with XNA in 3d, even program your own shaders stuff like that. When I get time i'll post some of the stuff i've done.
Title: Part 2
Post by: Apostrophe Spacemonkey on January 17, 2009, 05:48:52 pm
Sorry for the long wait, ran into some trouble writing the code, but got it working.

Just a warning, this is one way of doing it, there are lots of different ways (and probably better ways then this) to approach the same problem.

Also if there is anything in the tutorial which is wrong or confusing, please tell me and i'll try my best to fix it up.

Part 2: Creating a new Project
Open up your Visual C# Express (or Visual Studio).

Click 'File' -> 'New' - > 'Project'

Open up the C# menu on the list and select 'XNA Game Studio 3"
'Windows Game' is the one we want for now, so go ahead and select that.
Give you project a name, then click 'OK'
(http://i3.photobucket.com/albums/y67/jarik/ImCup/NewProject.jpg)

You will get the basic code for an XNA game, if you have a look at your solutions explorer you will see a list of parts in your project.
(http://i3.photobucket.com/albums/y67/jarik/ImCup/SolutionExplorer.jpg)
'Game1.cs' is the main file that will contain your c# code, later we will add additional classes.
'Program.cs' runs your game class, don't need to worry about this.
'Content' is a folder that will contain art assets for you game, things like pictures etc.

Part 3: Adding content

Now we'll add some pictures for the game, I've attached a zip file called pictures, however feel free to make your own, they'll probably be much better then mine.

Unzip the pictures, then in Visual Studio, right click on the 'Content' folder and click add. Browse to where to unzip the pictures to and select them. The pictures will be copies to your project.

Now select one of the pictures under the content folder, it's properties will be show in the properties window (usually in the bottom-right).
Left Click the plus sign next to the word 'Content Processor'

I made the background of the pictures black, The 'Color Key Color' value will change whatever colour it is set to to transparent. In this case open up the 'Color Key Color' by clicking on the plus sign, then type '0' in the R, G and B field to indicate black.

(http://i3.photobucket.com/albums/y67/jarik/ImCup/ContentProcessor.jpg)


Part 4 will be coming soon
Title: Microsoft XNA Game Studio
Post by: HyperBlade on January 17, 2009, 07:38:40 pm
I've completed Step 2, nice work on the tutorial so far, clear and concise.
Title: Screen Resolution: Basic of the Basics
Post by: Tiwaking! on February 27, 2013, 09:31:19 pm
I am surprised at the number of XNA games made that simply do not work. Even more surprising is the number (which is almost all of them) which do not run in full screen and are totally unrescaled for higher/lower resolutions
Title: Making Games with Microsoft XNA Game Studio
Post by: Pyromanik on March 02, 2013, 04:14:23 pm
I'm surprised XNA is still a thing.
Title: Making Games with Microsoft XNA Game Studio
Post by: Apostrophe Spacemonkey on March 04, 2013, 09:23:40 am
I suspect MS is working on a replacement to XNA, which will be supported by the nextbox and metro.
Title: MechCommander 2
Post by: Tiwaking! on March 17, 2013, 11:01:42 pm
Quote from: Pyromanik;1519584
I'm surprised XNA is still a thing.

MechCommander 2 (http://en.wikipedia.org/wiki/MechCommander_2)
Quote
In 2006, Microsoft released a portion of the source code along with most game assets (i.e. everything needed to compile the game without networking support and without all the art) under a Shared Source licence in order to demonstrate its XNA Build system.[1] The source release documentation warns developers that not all code necessary to produce a complete build has been included.

"Source files are not provided for all of the output files from the MechCommander 2 build. For these output files, the built file itself exists in the source folder and is simply copied from there to the FinalBuild folder. Be careful not to delete .fst or .pak files that exist in the source directory at the time of installation because you will not be able to rebuild these."

Currently, the game is under mod by several projects.