Topic: Making Games with Microsoft XNA Game Studio

Offline Apostrophe Spacemonkey

  • Fuck this title in particular.

  • Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!
  • Posts: 19,050
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

Then download and install
XNA Game Studio 3

That should be all you need, for now.

Posted: December 23, 2008, 11:45:52 am

Offline HyperBlade

  • Addicted
  • HyperBlade has no influence.
  • Posts: 4,057
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.

Reply #1 Posted: December 23, 2008, 07:37:57 pm

Offline Virtuality

  • Addicted
  • Virtuality has no influence.
  • Posts: 2,959
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

Reply #2 Posted: December 24, 2008, 02:06:38 am

Offline Apostrophe Spacemonkey

  • Fuck this title in particular.

  • Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!
  • Posts: 19,050
Quote from: Virtuality;859389
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


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.

Reply #3 Posted: January 17, 2009, 05:42:37 pm

Offline Apostrophe Spacemonkey

  • Fuck this title in particular.

  • Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!
  • Posts: 19,050
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
Making Games with Microsoft XNA Game Studio


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
Making Games with Microsoft XNA Game Studio

'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
Making Games with Microsoft XNA Game Studio



Part 4 will be coming soon

Reply #4 Posted: January 17, 2009, 05:48:52 pm

Offline HyperBlade

  • Addicted
  • HyperBlade has no influence.
  • Posts: 4,057
I've completed Step 2, nice work on the tutorial so far, clear and concise.

Reply #5 Posted: January 17, 2009, 07:38:40 pm

Offline Tiwaking!

  • Hero Member
  • Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!
  • Posts: 12,584
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

Reply #6 Posted: February 27, 2013, 09:31:19 pm
I am now banned from GetSome

Offline Pyromanik

  • Hero Member
  • Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!
  • Posts: 28,834
I'm surprised XNA is still a thing.

Reply #7 Posted: March 02, 2013, 04:14:23 pm
Everyone needs more Bruce Campbell.

Offline Apostrophe Spacemonkey

  • Fuck this title in particular.

  • Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!
  • Posts: 19,050
I suspect MS is working on a replacement to XNA, which will be supported by the nextbox and metro.

Reply #8 Posted: March 04, 2013, 09:23:40 am

Offline Tiwaking!

  • Hero Member
  • Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!Tiwaking! is awe-inspiring!
  • Posts: 12,584
Quote from: Pyromanik;1519584
I'm surprised XNA is still a thing.

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.

Reply #9 Posted: March 17, 2013, 11:01:42 pm
I am now banned from GetSome