The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
2answers
111 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 !? int MaxSpeed = 50; if (Speed.X > MaxSpeed) Speed.X = MaxSpeed; if (Speed.X < MaxSpeed * -1) ...
3
votes
0answers
56 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
35 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 ...
0
votes
1answer
95 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? using ...
2
votes
1answer
47 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 determine the order in which to draw my entities (higher Z = drawn on top). ...