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