Questions tagged [xna-4.0]

Version 4.0 (Final) of Microsoft's XNA Framework. If you use this tag, please also include the main tag XNA.

is the final version of Microsoft's XNA Framework.

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 other (via MonoGame).

This was the definitive version that came out at 2010-09-16. Despite that it's no longer developed, It's still used for plenty of projects as of 2017.

If you use this tag, please also include the main tag .

1200 questions
6
votes
3 answers

How to make screenshot using C# & XNA?

How to make screenshot and save it to HDD using C# & XNA, while running game in fullscreen mode?
Neomex
  • 1,650
  • 6
  • 24
  • 38
6
votes
2 answers

How many (low poly) models can XNA handle?

I'm aware that the following is a vague question, but I'm hitting performance problems that I did not anticipate in XNA. I have a low poly model (It has 18 faces and 14 vertices) that I'm trying to draw to the screen a (high!) number of times. I get…
Necrototem
  • 554
  • 6
  • 12
6
votes
2 answers

Draw() 20,000 32 by 32 Textures or 1 Large Texture 20,000 Times

I'm programming in C# using the .NET Framework 4, and aiming to make a tile-based game with XNA. I have one large texture (256 pixels by 4096 pixels). Remember this is a tile-based game, so this texture is so massive only because it contains many…
Jason
  • 6,878
  • 5
  • 41
  • 55
6
votes
3 answers

XNA 3.1 to 4.0 requires constant redraw or will display a purple screen

For menus in my game, I draw them once to the screen, then only redraw if they've been deemed dirty. This is handled through a boolean set to true whenever the user performs an action that should cause a redraw, and then the draw loop will check…
Mike Dearing
  • 101
  • 1
  • 5
6
votes
1 answer

Can't access build configuration manager or build configurations in Visual C# 2010 Express

Full Story Typically, when I install Visual C# 2010 Express, the first thing that I do is switch to Expert Settings. That gives me access to build configurations, and the respective manager. This most recent installation seems to be…
Zenexer
  • 18,788
  • 9
  • 71
  • 77
6
votes
1 answer

What is the best method in XNA to have the player paint smoothly on the screen?

I'm developing a wp7 game where the player draws lines in the program and a ball bounces off of them. I'm using XNA and farseer physics. What is the best method for a user to draw a line, and then for the program to take it and turn it in to a…
Ian Wilson
  • 63
  • 4
6
votes
3 answers

The dream to inherit from a struct in c#

There I am making a 2D game in C# XNA 4.0, and run across yet again a petty annoyance of mine; the Rectangle. For those using basic collision, this is almost a necessity. For almost any game object created you need to have a rectangle. Then I go to…
Fewfre
  • 1,461
  • 3
  • 19
  • 32
5
votes
1 answer

Need help using instancing in XNA 4.0

I have come to inquire about instancing in XNA I am a beginning XNA developer, only recently stepping up from 2D to 3D games. I'm trying to draw a large number of cubes made solely out of vertices in code. As one might suspect, drawing a large…
Broghain
  • 107
  • 4
  • 10
5
votes
1 answer

Simulating gravity in XNA

I'm trying to animate a 2d sprite in my XNA 2D game, by the force of gravity. I've developed a very basic class to achieve the simulation effect. This is my sample code. namespace Capture { class PhysX { static Vector2 g = new Vector2(0.0f,…
batman
  • 703
  • 1
  • 9
  • 27
5
votes
0 answers

How to refresh template caches in VS 2010

I need to refresh the caches for item templates in visual studio to remove some deleted templates, and I have tried to run: devenv.exe /installvstemplates devenv.exe /setup devenv /installvstemplates devenv /setup and all have failed to remove the…
annonymously
  • 4,708
  • 6
  • 33
  • 47
5
votes
3 answers

C#/XNA pseudo-Random number creation

The c#/XNA process for creating random numbers is pretty quick and easy, however, it is quite possibly the worst distributing random number generator I have ever seen. Is there a better method that is easy to implement for c#/XNA? rand.Next() just…
SimpleRookie
  • 305
  • 1
  • 3
  • 14
5
votes
1 answer

What game engines are available for XNA 4.0?

http://forums.create.msdn.com/forums/p/12882/67856.aspx lists various engines that supported 3.1: Visual3d.net TorqueX SunBurn Axiom3d Flat Red Ball Ox X-Engine BetaCell Thrust EGGEngine Tomahawk which engines support XNA 4.0 ?
Josh Reuben
  • 577
  • 3
  • 20
5
votes
2 answers

Very simple menu in XNA

Me and some other guys are creating a game, and i would like to add a very simple menu with only Start and Exit Game. Now I already downloaded the Game state management sample, but thats a very long and complicated code. My question: someone knows a…
Jack
  • 89
  • 1
  • 2
  • 4
5
votes
1 answer

How to disable the depth buffer?

I don't see a RenderState as a member in the GraphicsDevice class, which is where the functions for disabling the depth buffer used to be. Anyone know how this is done with this new 4.0 API? It would be great if I could somehow access a full…
Kalen
  • 3,106
  • 8
  • 29
  • 42
5
votes
4 answers

Windows Phone 7 target display resolution - recommendations?

The official WP7 emulator uses 800x480 resolution. The only info I can find on planned WP7 phones (eg Samsung Cetus i917) share the same resolution. While I realise the appeal of writing resolution-independant programs, I'd really rather focus on…
nathanchere
  • 8,008
  • 15
  • 65
  • 86
1 2
3
79 80