Game in a Day: Preparation for rapid development ( #xna #giad #24hgd )
So, in preparing for tomorrow, I decided in teh spirit of true rapid game development, I would make it easier to build the game by making two main things easier, the first being that handling input can be handled by one global class. The class basically has all of the following:
- Check if a key has been pressed
- Check if a key is being held down
- Check if a key has been released
- Check how long the key has been held down for so far
- Check how long the key was held down for before release
This class has yet to be tested, but should handle all of the above mentioned perfectly (touch wood), which should speed up the development greatly. Tomorrow morning just before we start I will build the base class that we will be using as a template!
C# - XNA - Keyboard Handling
I also this morning added the SoundHandler class, which at the momet just plays soundeffects, but it allows us to add sound to the game (Will extend it some time during the challenge to play background music).
C# - XNA - Sound Handling
And last but not least, for those wondering what the "base class" I was talking about looks like:
C# - XNA - GIAD Base Class
And as soon as 0ldt1m3r arrives we will be beginning, be sure to follow progress on twitter, posts will be tagged as #giad and #24hgd, and my account is edg3za.
- edg3's blog
- Login or register to post comments