Questions tagged [xna]

XNA is a game framework by Microsoft that allows deployment for Windows, Windows Phone & Xbox 360.

XNA is a framework provided by Microsoft that facilitates video game development and management. XNA is based on the .NET Framework, with versions that run on Windows, Windows Phone and the Xbox 360.

XNA was retired by Microsoft in 2014 & is no longer actively supported.

3078 questions
83
votes
6 answers

What is the future of XNA in Windows 8 or how will managed games be developed in Windows 8?

I know this is a potential dupe of this question , but the last answer there was 18 months ago and a lot has happened since. There seems to be some uncertainty about XNA in Windows 8. Specifically, Windows 8 by default uses the Metro interface,…
Ken
  • 6,146
  • 3
  • 38
  • 51
70
votes
7 answers

What are typical pitfalls when writing games with a managed Language like C#?

What pitfalls did you encounter when writing games for the PC with a managed Language like C# and how did you solve them?
Michael Klement
  • 3,871
  • 4
  • 29
  • 23
67
votes
9 answers

2D graphics - why use spritesheets?

I have seen many examples of how to render sprites from a spritesheet but I havent grasped why it is the most common way of dealing with sprites in 2d games. I have started out with 2d sprite rendering in the few demo applications I've made by…
Columbo
  • 773
  • 1
  • 6
  • 5
59
votes
7 answers

What are the dangers of self-teaching game development?

I am about to embark upon a journey into game development. Following answers to my last question, I will be using C# and XNA. However, I don't personally know any other game developers and I don't work in the industry so, as such, will be…
Ste
  • 1,006
  • 1
  • 10
  • 27
58
votes
3 answers

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?
smnbss
  • 701
  • 1
  • 6
  • 7
58
votes
4 answers

How is 2D lighting implemented?

I am wondering what the best way to approach a "lighting" effect in 2D games is. For instance, if my main character is glowing, what techniques can I use to complete the visual effect of the character glowing when it is near other objects which…
Christopher Horenstein
  • 1,779
  • 2
  • 18
  • 25
40
votes
2 answers

How exactly does XNA's SpriteBatch work?

To be more precise, if I needed to recreate this functionality from scratch in another API (e.g. in OpenGL) what would it need to be capable of doing? I do have a general idea of some of the steps, such as how it prepares an orthographic projection…
David Gouveia
  • 25,035
  • 5
  • 89
  • 127
39
votes
11 answers

In Pong, how do you calculate the ball's direction when it bounces off the paddle?

I'm trying to wrap my head around this very Hello World-y problem in game development. I've created a TicTacToe game in XNA so I guess the next step would be a Breakout clone. Keep in mind that I have no knowledge on game programming or even what…
Sergio
37
votes
1 answer

Mouse aim in an FPS

I would like to make a First Person Shooter and move the camera with the mouse. The problem is that when the cursor reaches the limits of the screen, the camera won't turn anymore. How can I keep the mouse centered and detect its movements anyway?
BlackBear
  • 506
  • 4
  • 9
37
votes
1 answer

Rendering SVG art directly in XNA

Suppose I have a bunch of 2D art in some vectorized format such as SVG. Is there an easy-ish way to render that directly without having to implement a full SVG renderer myself? Of course I could rasterize it off-line (e.g. in the content pipeline)…
drxzcl
  • 1,799
  • 15
  • 18
34
votes
16 answers

What are some famous games developed with .NET and/or XNA?

Are there famous games written in .Net and/or XNA?
Graviton
  • 219
  • 1
  • 5
  • 11
31
votes
5 answers

Simulating pressure in a grid based liquid simulation

I have a 2D grid based water system in my XNA game, we have a method using cellular automata to simulate water falling and spreading. Example of water flowing down a slope: Each tile can contain a mass of 0 to 255 values of liquid, stored in a byte.…
Cyral
  • 1,039
  • 2
  • 14
  • 28
31
votes
4 answers

What is the correct object-orientated approach to class design in game development?

I'm in the midst of developing a 2D sprite-based game for Windows 7 Phone, using XNA. The training and tutorials available for it are pretty helpful, but the problem I face is that each of them approaches their class design differently, and the code…
Josh E
  • 537
  • 5
  • 10
30
votes
3 answers

How can I make this style of 2D "glowing" graphics?

I'm comfortable with the basics of building a 2d sprite based game in XNA, where all my objects are simply .png images that I move around. What things do I need to learn next to be able to develop a 2d game that utilizes an art style similar to…
TerryB
  • 1,273
  • 2
  • 13
  • 18
30
votes
1 answer

Orienting a model to face a target

I have two objects (target and player), both have Position (Vector3) and Rotation (Quaternion). I want the target to rotate and be facing right at the player. The target, when it shoots something should shoot right at the player. I've seen plenty of…
Marc
  • 465
  • 1
  • 4
  • 7
1
2 3
…
99 100