XNA Game Studio 4.0


XNA Game Studio 4.0 is a very powerful tool developed by microsoft which is used to develop games. It uses C#, so you must have at least the express edition of C# installed.

Steps to install XNA Game Studio:

  1. Download the software from this link:
    http://www.microsoft.com/en-us/download/details.aspx?id=23714
  2. Install the software.
  3. If you do not have C#, then go to this link and download the express version for free: http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express
  4. Now, to make a new project, open C#, click on new project and there should be a template “Windows Game(4.0)”

You will get something like this:

Now, you have created your first project in XNA.  I’ll explain in brief what the program means:

  1. The first few statements are using statements which include essential files needed for creating games.
  2. GraphicsDeviceManager graphics;
    SpriteBatch spriteBatch;

    In the first statement, graphics object provides access to, not surprisingly, the system’s video card.
    The second statement enables you to draw 2D images(Called sprites)
  3. The graphicsDeviceClear(Color.CornflowerBlue); statement clears the screen with a blue colour.
  4. The Initialize method sets up methods to set screen size or to toggle full screen and all that stuff.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s