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.

3076 questions
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
  • 527
  • 5
  • 10
14
votes
1 answer

XNA captures mouse clicks when the game doesn't have focus

If I alt-tab and do stuff outside of the game window, the game still captures mouse clicks (both left and right clicks). The game doesn't "consume" the clicks, since they are also sent to the application that has the focus. But it's rather annoying…
user6244
13
votes
4 answers

Where is XNA headed?

I love XNA. I really do. As president of the Game Development Club at my school, we use it and I teach it. But I'm worried about it. I've always wondered, are there any signs that XNA will ever become more than just a prototyping/arcade game…
Ricket
  • 14,810
  • 6
  • 66
  • 82
13
votes
3 answers

Why is XNA not considered a game engine?

I'm just wondering what XNA is missing, to be considered as a game engine. It does all the things a game engine should do (except the physics part); it also has support for every aspect defined in the Wikipedia article on game engines. Why is XNA…
Ali1S232
  • 8,687
  • 2
  • 40
  • 59
12
votes
2 answers

How to find the window size in XNA

I just wanted to know if there was a way to find out the size of the window in XNA. I don't want to set it to a specific size; I would like to know what dimensions it currently displays as automatically. Is there a way to find this information…
11
votes
2 answers

Drawing a one pixel wide line in 3D space

I'd like to draw a line in 3D space that is always exactly one pixel wide on screen, no matter how far away from the camera it is. (And the same for single points too). Any hints on how I could do that?
danbystrom
  • 289
  • 1
  • 2
  • 14
10
votes
2 answers

Any ad network for XNA games on the PC platform?

There's a lot of press about the ad controls included on the new 7 phone, but I'm looking for candidates for the PC platform.
Nolan Egly
  • 101
  • 2
9
votes
3 answers

Rounded corners in XNA?

Is there any way that I can make rounded corners on a rectangle rendered in XNA through primitives (line-strips)? I want to make my UI a bit more fancy than it is already, and I would like the code to be flexible, without too many textures involved.
7
votes
5 answers

Moving my sprite in XNA using classes

Hey, im a newbie at this programming lark and its really frustrating me. I'm trying to move a snake in all directions while using classes. Ive created a vector2 for speed and ive attempted creating a method which moves the snake within the snake…
user5141
7
votes
1 answer

Trying to use stencils in 2D while retaining layer depth

This is a screen of what's going on just so you can get a frame of reference. The problem I'm running into is that my game is slowing down due to the amount of texture swapping I'm doing during my draw call. Since walls, characters, floors, and…
Steve
  • 71
  • 1
7
votes
2 answers

What are these rendering artifacts and how can I fix them?

Here is the artifact: Here is some clarifying information: This appears only at 480 units from the origin, and seems to get worse (to a point) as I move away. All water should have sand rendered behind it, but the sand should be occluded (since I…
John Gietzen
  • 447
  • 4
  • 11
7
votes
4 answers

I made a game in XNA - how can I share it with my friends?

I've just finished programming a charming (albeit bare-bones) XNA version of arcade classic Tempest. Hooray! Given that this was a homework assignment, I'd like to be able to share it with my professor and my friends/classmates to solicit…
Raven Dreamer
  • 1,867
  • 2
  • 21
  • 38
7
votes
1 answer

How do I use render targets in XNA?

I'm trying to render text (or whatever) off screen. But I have a strange issue where the render target size matches the window size and not the render targets size. Yes, it is a contradiction! Here's the render target: And here's the code, chopped…
Gavin Williams
  • 595
  • 4
  • 13
7
votes
2 answers

What kind of culling does XNA do for me?

Which kinds of culling and clipping does XNA do for me as default, and which kinds does it not? Z-culling? Backface culling? etc.
6
votes
2 answers

XNA editor content

I have a little problem with designing editor in xna. I have Content types like TilemapContent and then runtime types like TilemapData (that are automaticly converted by content pipeline) but in editor, i think i need to work with TilemapContent (so…
Kikaimaru
  • 911
  • 6
  • 17
1
2 3
11 12