Utility Tutorials

While in the process of building these tutorials, I have created a list of topics that people want to be able to do that don't really fit into any other category. This category is a list of tutorials that cover random little changes that you might want to try out in your game. It is probably a good idea to look through the list and see what's here, so that later you can come back when you run into a particular problem.

utility100.png

1 - Changing the Window Size

Changing the window size is simple in XNA. This tutorial will show you how.
Changing the Window Size


utility100.png

2 - Setting the Window Title

An XNA game has a default window title, which is the name of your game. However, you might want to change this title to be something else. This tutorial will show you how to set the title of the window that you game is running in.
Setting the Window Title


utility100.png

3 - Full Screen Mode

Many games run in full screen mode, meaning that the game fills the entire monitor. There isn't even a border around the game. All you can see is the game. This really helps the user get into the game, because there are no distractions. This tutorial shows you how to make your XNA game run in full screen mode.
Full Screen Mode


utility100.png

4 - Console Windows

Many beginning game programmers are used to having applications that have a console window (you know, that black window that only displays text). In fact, many beginning game programmers have only made programs that have only a console window. People often use them to give simple text feedback about what is going on in their program to help them debug. However, XNA games do not, by default, show a console window. This tutorial will show you how to turn on and use a console window in your game.
Console Windows


utility100.png

5 - Drawing in Wireframe Mode

On the graphics card, you can change a setting that indicates that you want to draw only lines (a wireframe version of the triangle), rather than the entire object. In many games, this won't come up, but occasionally, you find a time and a place that you want to use wireframe mode. This tutorial will show you how to do this in an XNA game.
Drawing in Wireframe Mode


utility100.png

6 - Calculating the Frame Rate

The frame rate of a game is the number of times the screen is redrawn (a frame) in a given amount of time—usually a second. Different games have different frame rates. By default, XNA tries to run a 60 frames per second (fps). If your rendering or updating becomes slow, this may start to drop. Once you get down to 15 frames per second, it starts to be noticable, and you will have to change your code somehow to improve your frame rate. This tutorial will show you a simple way of calculating the frame rate of your game.
Calculating the Frame Rate