XNA Game Studio 4.0 is a programming environment that allows you to use Visual Studio to create games for Windows Phone, the Xbox 360 console, and Windows-based computers.

learn more… | top users | synonyms (1)

12
votes
2answers
2k views

Playing a Song causing WP7 to crash on phone, but not on emulator

I am trying to implement a song into a game that begins playing and continually loops on Windows Phone 7 via XNA 4.0. On the emulator, this works fine, however when deployed to a phone, it simply ...
2
votes
2answers
493 views

Why doesn't this ContentLoader project (VS2010 e) recognize Microsoft.Build.dll?

I am working with an XNA content loader sample. In the references for the project (VS 2010 Express) there are: Microsoft.Build Microsoft.Build.Framework //as well as the standard XNA framework and ...
14
votes
2answers
3k views

Creating an electricity/lighting/tesla coil effect in a 2D XNA game?

I'd like to create beams of electricity between two points very similar to this video: http://www.youtube.com/watch?v=eMJ8-56L3Lc. The effect is so dynamic, with varying lengths and pseudo-random ...
17
votes
4answers
3k views

What are the differences between XNA 3.1 and 4.0?

I have been away from XNA for a couple months and want to get back into it. I had a game I was currently working on, but it was done in XNA 3.1. What are the differences between the two, and is it ...
3
votes
2answers
724 views

Spritesheets From Individual Images in Content Pipeline?

My main goal is avoid using an external program like SpriteSheetPacker. I would like to just use sequenced PNGs and have the sprite sheets be made, updated, and saved automatically when I build my ...
2
votes
2answers
3k views

Texture2D.GetData fails to return pixel colour data

Because I'm using sprite sheets instead of an individual texture per sprite, I need to pass in a Rectangle when calling Texture2D.GetData() in my collision detection for per-pixel tests. ...
7
votes
1answer
4k views

Resolution Independent 2D Rendering in XNA

I am trying to figure out the best way to render a 2d game at any resolution. I am currently rendering the game at 1920x1200. I am trying scale the game to any user selected resolution without ...
4
votes
2answers
2k views

C# XNA - Sky Sphere Question

I have been banging my head against the wall trying to get a sky sphere to work appropriately in XNA 4.0. I have the sphere loading correctly, and even textured, but i would like something a little ...
11
votes
2answers
6k views

How do I disable texture filtering for sprite scaling in XNA 4.0?

I have a sprite that I'm trying to scale up in XNA, but XNA is applying some sort of texture filtering that smooths it and makes it look ugly. I'd like it to just do pixel doubling instead of ...
2
votes
1answer
335 views

Why are my polygons not opaque?

A newbie to XNA here. This is a followup to my previous question that showed me part of what I was doing wrong but I'm still not getting what I want. I'm setting up a BasicEffect thus: Effect = new ...
1
vote
2answers
707 views

Getting a black scene with XNA, what am I doing wrong?

I'm new to XNA (ver 4) and I'm obviously doing something wrong but I don't know what. So far I have managed to model my scene (quite simple, just a bunch of squares which are calculated--there are no ...
3
votes
2answers
349 views

Handling sound effects for Multiple Collisions

How can I generate somewhat realistic sound effects for collisions in a physics engine that simulates lots of objects? E.g. take >10 marbles that are bouncing off walls and off each other. If I ...
4
votes
1answer
2k views

How do I get an XNA 4.0 game to run on other machines?

Whenever I try and run a game made in XNA 4.0 on a machine other than one used for development, it just won't run. I've followed the instructions here to ensure that all the dependencies are present. ...
1
vote
1answer
519 views

Porting an HLSL 3.0 shader to 2.0?

I have a couple of .fx files from a Shader-Based 2D Shadows example. I want to utilize the same kind of technique with XNA 4.0's Reach profile, which if I understand correctly needs to have HLSL 2.0 ...
10
votes
2answers
1k views

In-Game Level Design with XNA?

I am wondering about in-game level design. My current situation revolves around Tiled - I have many different layers with different types of objects in them (for anyone who isn't familiar with Tiled, ...
12
votes
1answer
3k views

Disposing only certain resources in XNA?

The ContentManager in XNA 4.0 only has one Unload() method that Unloads all Assets. I want to have some "global" Assets that are always loaded, but then I want per-Level Assets which should be ...
6
votes
1answer
1k views

XNA 4.0 Post-Processing Libraries?

Are there any free XNA 4.0 post-processing libraries that are easy to hook into projects? I am looking specifically for a glow effect (although anything is great), and I should also mention that I'm ...
6
votes
2answers
956 views

Offline XNA Deployment to XBOX. Can it be done?

Well, The question is pretty explicit on its own. I want to know if I can deploy a game from my PC directly to a XBox. I'm not a professional developer of games, I do it on my free time because it ...
6
votes
2answers
2k views

How are components properly instantiated and used in XNA 4.0?

I am creating a simple input component to hold on to actions and key states, and a short history of the last ten or so states. The idea is that everything that is interested in input will ask this ...
2
votes
2answers
302 views

TitleSafeRegion isn't available on XNA 4?

I'm following the book Microsoft XNA Game Studio Creators Guide v2. and there is a snippet in the book that is used to return a Rectangle that represents the safe area you can draw without the fear of ...
16
votes
2answers
24k views

Error on new XNA 4.0 game project - No suitable graphics card found

Any ideas on how to fix this? According to what I remember about XNA 3 was that when running the application from scratch, I would get a blue colored windows with nothing rendered. Any suggestions? ...