My last article generated some traffic and attracted some interest in my remake of Atoms, i got my first link from another site as well! So now this is being read by more than me and my mum, I’ll update with what i have been up to more frequently.
I spent some time last night looking at adding a user interface, i added a class for handling the front-end, developer splash and other user interface gubbins and the first thing i tried to implement was a straightforward pause mechanism. Turns out i needed keyboard input code for that, and after a failed attempt at adding one as a new class, i realised i had to merge it into my mouse class and make a generic input object instead. Seeing as I’d gotten a little better with C++ since i originally wrote the mouse input, i took the time to rewrite the whole class and make it more consistent, all i need to do for it now is add joypad support for future projects, but I’ll do that when the time comes.
After adding the new control code, i got the pause mechanism working, this pleased me, and so i committed what i had to my codebase and went to bed.
I should point out if i haven’t already, I’m a firm believer that when working on something, you should commit it to your code repository as soon as you have it working, then, if you toss it up later, you can come back to it later, and not have to also re-write a bunch of other stuff you didn’t commit till you had to.
I’ve learned this the hard way, its not much fun.
Later tonight I’m going to do some more work on adding the mechanisms for a front-end and a splash screen, my goal is to get a functional menu system up and running.
No comments
Comments feed for this article
Trackback link
http://games.leighashton.com/2008/07/13/code-update/trackback/