Refactoring is FUN
Well, not really, but sometimes you just have to do it.I did it today, and made great progress on the game. Not much has changed visually, but the following has changed under the hood:
- The file structure has been completely redesigned
- The game has been adapted to a more MVCish style
- Lots of constants have been added, so that game is easier to configure
- The player's greatest score is recorded separately
That's right, now you can see not only your current score but also your previous score, how much it has changed and which score you reached at most (it may differ from the current score if you have missed a clock).
I guess this is what I have left:
- Making the text fit
- Transforming the score to ints
- Balancing the game so it becomes harder, easier and finite
- Introducing the ability to lose
- Slightly improving graphics
- Making sure it's easier to keep track of your score
- Making menus
- Writing readmes
- Applying a license (I feel compelled to try the EUPL - it's multilingual... no polylingual!)
- Replacing the decorator mechanism that keeps track of the score, it's uncool.