Questions tagged [xna]

XNA is a cross-platform framework originally from Microsoft that facilitates game development with .NET. Supports: Windows, Xbox 360, Windows Phone (natively), Silverlight (via SilverSprite or Exen), iPhone/iPad, Android, Mac OS X, Linux and others (via MonoGame).

Microsoft's XNA Creator's Club: XNA Creators Club

Supported platforms for game development:

Natively:

  • Windows Desktop
  • Xbox 360
  • Windows Phone 7

Via Monogame:

  • iPhone and iPad
  • Android
  • Linux
  • Mac
  • Windows Metro (including 8, 8.1, and 10)
  • Windows 10 Universal App Platform
  • Windows Phone 8 (And 8.1)
  • Ouya
  • Playstion Mobile (PSP) (In development)

Via other methods:

Learning Sources:

Web:

Books:

7309 questions
196
votes
4 answers

How to install XNA game studio on Visual Studio 2012?

Is it possible to create XNA games using Visual Studio 2012?
Steve B
  • 36,818
  • 21
  • 101
  • 174
167
votes
8 answers

Getting Started with Windows Phone 7

This is a community wiki list of Windows Phone 7 resources. Feel free to edit/add/etc. When posting, please use the friendly format of [Actual Name of resource with a link] not [some long URL with no meaning unless I click on it] General…
ctacke
  • 66,480
  • 18
  • 94
  • 155
88
votes
10 answers

How to uninstall .vsix Visual Studio Extensions?

I am currently trying to install the XNA Game Studio for Visual Studio Express 2013. And I accidentally ran the .vsix program BEFORE actually installing the XNA framework. After installing it and re-running the .vsix, I get a message error saying…
user3147186
71
votes
10 answers

Convert string to Color in C#

I am encountering a problem which is how do I convert input strings like "RED" to the actual Color type Color.Red in C#. Is there a good way to do this? I could think of using a switch statement and cases statement for each color type but I don't…
Kevin
  • 6,711
  • 16
  • 60
  • 107
69
votes
10 answers

How to calculate bounce angle?

I played around with it for a while, but I simply can't figure it out. I made a tank that fires missiles, and when the missiles hit the walls, I want them to bounce off, but I want them to bounce off to the right angle. Right now I haven't got any…
Moulde
  • 3,438
  • 4
  • 29
  • 38
55
votes
4 answers

How do I set the window / screen size in xna?

How can I adjust the size of the window in XNA. Default it starts in a 800x600 resolution.
Sjors Miltenburg
50
votes
5 answers

When transforming textures (drawn as flat 3D objects) to mimic depth, black lines appear randomly

We are developing a top-down RPG using XNA. Recently we bumped into a setback when writing the code to display our maps. When drawing the map, top-down view with a normal transformation matrix, everything seems to be fine. When using a non-flat…
Derk-Jan
  • 1,944
  • 16
  • 24
50
votes
4 answers

Comparison between XNA and DirectX (C#)

In terms of PC development (excluding Xbox and Zune), What is the difference between XNA and C# DirectX? Does C# DirectX have a significant advantage over XNA (in terms of speed, royalties, etc)? How are the two compared to the speed unmanaged C++…
worbel
  • 6,509
  • 13
  • 53
  • 63
48
votes
3 answers

XNA: get screen's width and height

how do i get the width and height of the entire screen in XNA?
RCIX
  • 38,647
  • 50
  • 150
  • 207
45
votes
10 answers

How do I draw lines using XNA?

I've read a bunch of tutorials involving XNA (and it's various versions) and I still am a little confused on drawing primitives. Everything seems to be really convoluted. Can someone show me, using code, the simplest XNA implementation of drawing…
mmcdole
  • 91,488
  • 60
  • 186
  • 222
43
votes
5 answers

How can i install MonoGame into Visual Studio 2013?

How can I install MonoGame templates for Visual Studio 2013?
Juraj Mlich
  • 678
  • 1
  • 7
  • 15
42
votes
10 answers

Performance cost of 'new' in C#?

In C# what is the performance cost of using the new keyword? I ask specifically in relation to games development, I know in C++ it is a definite no-no to be newing things every update cycle. Does the same apply to C#? I'm using XNA and developing…
meds
  • 21,699
  • 37
  • 163
  • 314
41
votes
6 answers

Extracting Yaw from a Quaternion

I have a rotation quaternion and want to extract the angle of rotation about the Up axis (the yaw). I am using XNA and as far as I can tell there is no inbuilt function for this. What is the best way to do this? Thanks for any help, Venatu
Venatu
  • 1,264
  • 1
  • 13
  • 24
39
votes
10 answers

C# game development after XNA

I am a game developer who made games in .Net languages with XNA for the past four versions of it. Unfortunately now there's this news: http://www.gamasutra.com/view/news/185894/Its_official_XNA_is_dead.php#.UQ3yiehQCh8 I am surveying the ecosystem…
Giuseppe Maggiore
  • 2,011
  • 1
  • 23
  • 31
37
votes
4 answers

XNA 2D Camera Engine That Follows Sprite

What is the best way to create a parallax effect in an XNA game? I would like the camera to follow my sprite as it moves across the world, that way I can build in effects like zoom, panning, shake, and other effects. Anybody have a solid example of…
Khalid Abuhakmeh
  • 10,709
  • 10
  • 52
  • 75
1
2 3
99 100