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.
40
votes
3answers
7k views
Optimizing an XNA 2D game
Does it make sense to implement the logic to skip rendering objects outside the viewport or should I not care about it and let the Framework do it?
30
votes
7answers
10k views
How'd they do it: Millions of tiles in Terraria
I've been working up a game engine similar to Terraria, mostly as a challenge, and while I've figured out most of it, I can't really seem to wrap my head around how they handle the millions of ...
15
votes
2answers
20k 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?
...
14
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 ...
14
votes
3answers
1k views
Faking isometric graphics in a 2D space game
First off, I know exactly what my drawing problem is, and I have various ideas on how to approach solving it. I am here to figure out how to adjust which frame is drawn so that the isometric ...
13
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 ...
13
votes
1answer
2k views
How do you add equipment to a 3D character model using XNA/Blender?
I've watched quite a few Blender tutorials, but I have yet to see examples of how to swap out sub-models. So my question is, how do you swap out equipment on a character model? Specifically I’d like ...
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 ...
12
votes
2answers
707 views
XNA: Questions regarding games architecture
So I've finally got around to playing around with XNA and have been toying around with making a 2D game (I have a bunch of art assets from a friend who developed it on iOS)
A lot of things seem to be ...
12
votes
1answer
2k 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 ...
11
votes
6answers
484 views
Run XNA game without graphics
Wondering if there is anyway to run an XNA game with out displaying anything.
I have a working game that runs in a client server setup where one player is the host and other people can connect to ...
11
votes
2answers
2k views
Export Blender 2.59 models with animations to XNA 4
Whats the best way to export from Blender 2.59 for XNA 4? I have heard you can use the DirectX to export to .x instead of .fbx which works better with animations?
Unfortunately all the tutorials out ...
10
votes
1answer
826 views
Why are there lines in between my tiles?
I'm making a top down XNA game. The maps are created by tiles. A problem I recently noticed is a 'grid' of lines between the tiles. It only shows up sometimes and only depending on the camera ...
10
votes
1answer
787 views
Fog Of War - XNA
I'm creating my own top down 2D RTS game for personal educational purposes. Currently I really just copying Starcraft's design/ideas. I've decided I should probably implement Fog Of War too.
Let me ...
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, ...
10
votes
1answer
5k views
Ultimate beginner's tutorial to 3d game dev using XNA Framework?
I'm looking for a tutorial that starts at square 1 for game development and moves up through intermediate/expert levels of 3D game development. I really want to get into 3D game dev and I've been ...
10
votes
2answers
876 views
Projective texture and deferred lighting
In my previous question, I asked whether it is possible to do projective texturing with deferred lighting. Now (more than half a year later) I have a problem with my implementation of the same thing. ...
9
votes
1answer
280 views
How do I prevent XNA from pausing Updates while the window is being resized/moved?
XNA stops calling Update and Draw while the game window is being resized or moved.
Why? Is there a way to prevent this behaviour?
(It causes my network code to desynchronise, because network ...
9
votes
3answers
307 views
Outline sprites
I'm currently working on a 2D game, and my current task is to outline selected object.
I basically use a blur shader to do it fully runtime.
I first draw my sprite using a vertical gaussian blur ...
8
votes
3answers
4k views
How do I make objects move along a path?
I'm trying to get something like the below image. As you can see, there's a highway and inside of it, there'll be some objects moving (millisecond). I guess the street behavior is like a pipeline. ...
8
votes
3answers
460 views
Vector3 vs. Vector2 - performance, usage?
I'm currently playing around with XNA, and creating a simple 2D platformer. I was thinking of adding multiple layers to make it a little bit of challenge.
In stead of having a Vector2 for my ...
8
votes
4answers
725 views
Which is better, one big level model or multiple smaller level models?
I am writing a game in XNA 4 and I want to have something like a corridor. Do you think that is better to use one big and solid model, or to use multiple small parts (window, stairs, door...)?
8
votes
4answers
3k views
Should I use Events in a XNA Game?
I created a button class which draw a button on the screen. When I click on it, I want to see something happening. In WinForm, I would simply use the event OnClick of the button. What about XNA?
...
8
votes
2answers
2k views
Getting rid of dead objects in a game effectively?
I'm using a for loop or foreach loop (doesn't matter) to loop through all my objects when they need to be updated or drawn. However, when an object gets killed, I want it to get removed from the ...
8
votes
3answers
2k views
Load all content from folder
I want to ask, is there way to load in xna all content from folder ?
For example in my content I have:
Images/hero
Images/car
Images/tree
I want to make something like this
...
8
votes
1answer
314 views
How do I stop stretching during window re-size in XNA?
In my windowed mode XNA game when the user resizes the window the game stops updating the window and the last frame drawn is stretched and distorted until the user releases the mouse and the resize ...
8
votes
1answer
338 views
Implementing water effects (splashes) into XNA 4.0 game
I am creating a 2D XNA game and came across a tutorial on adding water effects (splashes) to an XNA game but after implementing it into my game I can't get it to scale down. Currently it takes up the ...
7
votes
5answers
2k views
2D Procedural Terrain Generation - Guaranteeing connectedness?
I'm working on a 2D platformer in XNA. One of things I'd like to be a main design characteristic is procedural content generation. The first step of that is to procedurally generate the terrain. So, ...
7
votes
2answers
5k 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 ...
7
votes
4answers
379 views
How can I test different TV display types for my XBLIG game?
The XBLIG submission check-list says to ensure that all important stuff critical to game-play be visible in the 'TitleSafeArea'.
I've received a bug report during play-test of my game (Crazy Balloon ...
7
votes
2answers
2k views
Eliminate delay between looping XNA songs?
I'm making a game with XNA and trying to get some background music to loop correctly. Because the file is an MP3 of about 30 seconds in length, I instantiated it as a Song. I want it to loop ...
7
votes
1answer
623 views
Problem with Update(GameTime) Methods and Pause implementation
I have the pause function implemented and it works correctly in that it dims the player screen and stops updating the gameplay.
The problem is that GameTime continues to increase while it is paused, ...
7
votes
1answer
221 views
XNA 4 game for both profiles
I am writing game in XNA 4 and this version have two profiles hi-def and reach. My problem is that I need to have my game code for each of these profiles and is very uncomfortable to have two projects ...
7
votes
1answer
3k 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 ...
7
votes
2answers
516 views
How to deal with variable size font in XNA 4.0
After searching for a while, I found no way to draw vector/scalable fonts in XNA 4.0 (which would be perfect...) and I am currently in a bind about how to render fonts for my game.
In the game I use ...
7
votes
4answers
665 views
How can I create NPCs and scenes?
How would I go about creating NPC Events/Scenes? For example, any RPG will have a ton of different in-game cut scenes where you can express a story line.
What I have thought of so far is having ...
7
votes
2answers
814 views
Blurring point light variance shadow map
I've been working on implementing variance shadow mapping for my game. I was able to get a spot light working with variance shadow mapping with a gaussian blur applied to the shadow map to reduce the ...
7
votes
3answers
754 views
Inverted textures
I'm trying to draw textures aligned with this physics body whose coordinate system's origin is at the center of the screen. (XNA)Spritebatch has its default origin set to top-left corner.
I got the ...
7
votes
1answer
327 views
How to make a 3d beam effect with XNA 4.0?
Do you know any demo or tutorial to learn to make a 3D Beam effect?
I have learn to make a 2D laser by simply using a texture and moving it thru screen.
But I am a little bit lost while trying to do ...
6
votes
9answers
1k views
Is it essential that I learn Try/Catch and Finally statements for Game Programming, or is it something I can come back to? [closed]
Doesn't seem like something that would be an essential part of GAME Programming.
6
votes
3answers
364 views
Smooth waypoint traversing
There are a dozen ways I could word this question, but to keep my thoughts in line, I'm phrasing it in line with my problem at hand.
So I'm creating a floating platform that I would like to be able ...
6
votes
2answers
2k views
The true cost to get my XNA game on XBox?
There seem to be many hurdles to get ones game onto Xbox, so far I have uncovered:
You need Visual Studio (once your game becomes commercial you cannot use Express - but have to pay for ...
6
votes
3answers
672 views
Why is my model's scale changing after rotating it?
I have just started a simple flight simulator and have implemented Roll and pitch. In the beginning, testing went very well; however, after about 15-20 seconds of constantly moving the thumbsticks in ...
6
votes
2answers
3k views
How to turn off vsync in XNA 4.0?
I created a FpsCounter DrawableGameComponent (linked to code, it's longish). It seems to work great, it displays 60.0 fps normally, and if I artificially slow down the game loop then it drops.
Given ...
6
votes
2answers
2k views
Learning XNA 3.1 Vs XNA 4.0
I am starting out learning XNA and its going smoothly. However I wonder if I am shooting myself in the foot by learning 3.1 not 4.0?
I am also aware Microsoft obviously has a conflict on interest in ...
6
votes
2answers
755 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 ...
6
votes
1answer
1k views
Fixing Slow XNA Game
I'm kind of new to XNA (and games in general). I'm trying to make a young relative of mine (10yo) a simple fun game where he is the main character. I'm down to the wire (I have to get it to him by ...
6
votes
1answer
461 views
How To Approach 360 Degree Snake
I've recently gotten into XNA and must say I love it. As sort of a hello world game I decided to create the classic game "Snake". The 90 degree version was very simple and easy to implement. But as I ...
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 ...