Friday, September 28, 2012

Debugging Tools

When we first began this project, we immediately decided upon a system that would show programmers vital changing aspects of the game. Thus, I was tasked with building a Debug class.

This dynamic class needed to be able to take any vital information and show it in the upper left hand corner of the game screen. I designed it as a static class that takes in a string which would draw to the screen every update cycle.  I made sure to keep track of all the calls to the debug class, so no information would be lost if another call was made.

This has proved to be a vital testing utility for various game aspects. For example, we can easily check the player's current state (i.e. on the ground, in the air, running up a wall).

No comments:

Post a Comment