Week 6 - Main menu up and running

Published September 08, 2014
Advertisement
Hello,

This week, it turns out I got plenty of time to write code : sleeping problems (one night) and motivation on the evenings even after my daughter is finally sleeping, around 22:30 (before, it's not possible to do anything, and I just want to enjoy family time anyway).

So, working on my main menu, instead of re-using directly the ui code I wrote for my previous game, I rewrote it so that it is better designed (less specific, modularity, separation of concern). I also did unit testing on this API, and it helped me a lot to fix my code early (before using it in my main menu) and also after the fact.

Of course, this is not a full fledged GUI api like swing (my previous code was not either), I would also say that it is quite crude -you will not be able to get a dynamic GUI- but it allow to define how my component are positionned on the screen and it computes the actual position, and takes care of finding the component at a position and fire an event. And I could write some code with quality in mind, and that always give me satisfaction.

Anyway, I finished all my tasks of the week on Sunday midnight -and that give me satisfaction as well- and am ready for the todo list of Week 7...
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement