Using Git for revision control

Using Git for revision control

If you are coding, no matter what it is, games, software, websites, you should be using a code revision control of some sort. Are you using? Cool. Is it Git? Smart choice, so you probably don’t need to read the rest of this post. For the rest I’m giving some help on how to start [...]

Making Big Grass Tiled Backgrounds in XNA

Making Big Grass Tiled Backgrounds in XNA

I’ve seen this quite a bit around on XNA forums and got 2 emails last week asking about this: I want to make a 3000×3000 grass background by tiling this small grass image I have. Should I make one big image or should I make a for cycle drawing the image (3000/TileSize) times? My answer [...]

XNA 2D Independent Resolution Rendering

XNA 2D Independent Resolution Rendering

Independent Resolution Rendering?? What’s this all about? Basically a way of not caring what you resolution is. Ever had Gui elements misplaced because you changed the resolution? Or getting out of the screen? If you are doing a game on Xna just for Xbox360 you can basically use a 1280×720 base resolution and the Xbox [...]

Drawing Lines in XNA

Drawing Lines in XNA

One of the things I realized is very handy when prototyping or debugging is to draw a line on a specific location. Like drawing lines around collision boxes to see if your character is making a proper collision. For my games I’ve made a small LineBatch. Basically LineBatch uses a SpriteBatch to draw the lines [...]

Xna Screen Manager

I know there’s lot’s of this stuff over the internet but I keep bumping into people asking for this. A way to easily switch from a Game Screen to a Menu or Options without having tons of flags and “if” clauses on the class Game. I’ve made a small project with a Screen Manager. The [...]

How to do a XNA fps counter

How to do a XNA fps counter

Frame rate or FPS, how it is most commonly known is a way for you to know how many images per second is you game drawing. The more the better. Less then 30 and you start to see hiccups. So how can you measure your frame rate in XNA? Inside your game1 class declare these [...]

How to do a Xna Log file

How to do a Xna Log file

Although the title says XNA log file this is actually a C# log file, I’ve just thrown this title cause lot’s of people search for xna log instead of C# log file. Many have asked me why take time to do a log file when you can throw exceptions when something goes wrong. Well the [...]

Using PerfHUD with XNA

Using PerfHUD with XNA

I am definitely a fan of ATI cards. Had a few Geforces but didn’t liked them very much. I actually noticed image quality decrease when switching from an old Radeon 9800 to a Geforce 8k something. I’m very happy with my Radeon 4890, now for the downside, PerfHUD, a very handy tool for Game Developers [...]

XNA Camera 2d with zoom and rotation

XNA Camera 2d with zoom and rotation

07/01/2011 – By popular request updated to XNA 4.0, xna 3.1 code is still there too One of the things I keep finding is people asking how to do a simple camera 2d in XNA. Today I decided to contribute with my own solution.