Wednesday, January 12, 2011

XNA Basics - Part 1

This is a really really short post on XNA Game Studio.

First you start a XNA project with File->New Project->Windows Game (3.0)

Then on the solution explorer you get some classes and folders with various names. Now don't be scared, යකා කියන තරම් කළු නෑ. ;-)



Ok, I'll go with the top down approach.
Properties and reference you don't have to worry.


Then the "Content" folder is where you store what needs to be loaded before you start the game. You may have noticed when games initiating some state-of-art progress bar or some freaky component appear to show you that it's loading, something similar.


Then you have "Game1.cs" (default). Ok this is the most important of all, it's your game class. Without this your like a person who knows how to ride the horse, but with no horse. This is where almost all of the game code goes. I'll come to this later.


Moreover, you will be surprised ( or........not ) to find the "Program.cs" This is like the main class of a java program. Ok you should be obvious about it when I say main class. Simply it tells the Game1.cs how to do, what it does. :D


Ok it's about what matters most in a XNA project.


Let's explore more about the Game1.cs in the next post. 


So fasten up your seat belts, it's gonna be a thrilling ride!

No comments:

Post a Comment