Home » Category » Microsoft Game Technologies

Microsoft Game Technologies: XNA Development FAQ

100| Sun, 23 Dec 2007 23:41:00 GMT| percent20| Comments (1)
I am putting this up hopeing it will be a community driven FAQ. If you see something asked often post it or something that is obscure. Whatever really as long as it may help.
I use links to threads only because they are expanding topics or many ways to do the same thing. I hope this helps.

Q: Are there any tutorials?
A: Sure there are to start do the following:
1. If you go into C# Express -> help -> Contents

2. Help program opens expand:
XNA -> XNA Game Studio Express -> Getting Started with XNA

3. Click "Your First XNA Game"

Then Check out the following sites.
http://www.learnxna.com
http://www.xnaspot.com
Q: How do I import transparent Images such as png's and get them to be transparent?

A: Easy answer.

spriteBatch.Begin(SpriteBlendMode.AlphaBlend);
spriteBatch.Draw(myTexture, new Rectangle(spriteX, spriteY, 50, 50), new Rectangle(mSpriteStartX, 0, 256, 256), Color.White);
spriteBatch.End();

Q: How do I get x64 support in Beta 1 of XNA?
A: http://exdream.no-ip.info/blog/PermaLink.aspx?guid=8962e9a7-3185-438d-882a-e8e919771dc2

Q: How do I show FPS?
A: This is only one way:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=683639&SiteID=1
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=688059&SiteID=1

//time since last FPS update in seconds
float deltaFPSTime = 0;

protected override void Update()
{
// The time since Update was called last
float elapsed = (float)ElapsedTime.TotalSeconds;

float fps = 1 / elapsed;
deltaFPSTime += elapsed;
if (deltaFPSTime>1)
{

Window.Title = "I am running at <" + fps.ToString()+"> FPS";
deltaFPSTime-=1;
}
// Let the GameComponents update
UpdateComponents();
}

Q: How do I use boundingbox with 2d?
A: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=683944&SiteID=1

Q: How can I use Space Wars with keyboard?
A: http://xnaspot.com/Tutorial_GettingStarted.aspx

Q: How do I load a 3d mesh .x files in Beta 1?
A: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=683102&SiteID=1&PageID=0

Q: How can I use VB.NET?
A: Only very limited support.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=685676&SiteID=1
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=687175&SiteID=1

Keywords & Tags: xna, microsoft, game

URL: http://msdn.itags.org/microsoft-game/244797/
 
«« Prev - Next »» 1 helpful answers below.

Q: Where are the physics?
A: XNA is a framework to develop from similar to how .NET is a framework to develop from. You still have to role your own physics since XNA is not a Game Engine. If you would like that please check out TourquX when it comes out.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=684033&SiteID=1

Q: What shader versions does XNA Support?
A: On windows ( 1.1, 1.3, 1.4, 2.0, 3.0 ), On Xbox it supports shader model 2.0, plus an extended Xbox-customised variant of 3.0
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=686803&SiteID=1

Q: How do I poll the mouse position and create a Mouse in the window?
A: http://www.xnaspot.com/Sample_Mouse.aspx

Q: How do I handle basic KeyBoard input?
A: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=683239&SiteID=1

percent20 | Fri, 31 Aug 2007 02:37:00 GMT |

Microsoft Game Technologies Hot Answers

Microsoft Game Technologies New questions

Microsoft Game Technologies Related Categories