XNA is a free set of game development tools from Microsoft that facilitate game development for Xbox 360, Windows Phone, Zune and Windows platforms.

learn more… | top users | synonyms

5
votes
1answer
44 views

Turn multiple key presses into single GameAction

The InputHandler class for my game detects key presses, turns each one into a GameAction, and raises an event. ...
14
votes
2answers
231 views

My animation code is lousy

When a user presses a key in my game, their avatar can move down, left, right or up. By move, I mean their avatar animates while various other things move around them on the screen. This is ...
4
votes
1answer
71 views

Improving XNA's default project template

I hope this isn't getting annoying, but I've asked a lot of questions about improving my game lately: How can I improve my game project design? Using the observer pattern with collision detection Is ...
3
votes
1answer
66 views

GameState Management efficiency

So I've read numerous tutorials on handling game states in XNA, and to each tutorial I've been read, it was different from the others. Now I want to ask which way is more efficient? I've created my ...
4
votes
2answers
261 views

Using the observer pattern with collision detection

My Game class has a property of type Player, which inherits from Entity: player = new Player( "knight.png" ); It also has a property of type World, which has a ...
3
votes
1answer
93 views

Position update loop and checking collision

I'm writing a laser connection game. This is my first game on Windows Phone, and I've never used C# and XNA before. The part of my code that could be improved is ...
5
votes
1answer
171 views

How can I improve my game project design?

I'm just getting started with XNA and game development in general. I followed these instructions to create a basic game, then this article to get sprite animations working. Now, I'm trying to ...
2
votes
2answers
356 views

Determine if an int is within range

Can I somehow make this a bit cleaner using Math.[Somthing], without making a method for it !? ...
4
votes
1answer
174 views

Distance checking of normalized vectors?

I've been learning C#/XNA in an attempt to make a game for the past few weeks so maybe this is an obvious newbie thing, but here goes: I've been making a fairly simple 2D game, so I have a list of ...
3
votes
1answer
91 views

I was wondering if there was a better way to improve my XNA joystick code? (Vb. Net)

I'm on a high school robotics team and I'm trying to code a Xbox 360 controller so that it'll controller the motors with variable speed. So far it works alright, but where I'm quite the novice coder ...
1
vote
1answer
235 views

C#/XNA interface usage, repeating functions

Essentially I'm wondering if this implementation of an interface is correct. I mostly don't like having to repeat the exact same getters and setters. Is there a better way or is this alright? ...
2
votes
1answer
53 views

Sorting entities by Z in every call to Draw

I'm using XNA (Monogame) in C#. My implementation contains a SpriteComponent class which has a Z property; I use this to ...