November 23rd, 2011, 02:23 PM
Anyone used XNA Game Studio to make games?
I've been working on XNA Game Studio. It uses C# for the language. Anyway I was just wondering, made like a fly up and down 2D plane game where you can shoot missles at other planes randomly coming in the side of the screen. And it seems that my entire code was if-statements. If you press right move sprite.X + 1, left sprite.X -1, space draw missile sprite and move it x+20 every update, things like that. So it was literally just a series of sprites and depending on their position variables and booleans on whether they should be drawn at the time or not made up the entire game.
I was just wondering if this was normal or if I was just taking an easy way out. It seems highly inefficient to do it this way but I cant think of another way. any good tutorials?