Got myself a framework

No gameplay yet; I'm starting from scratch on the user interface. This aspect has always seemed very ad hoc to me, but this time I've managed to modularize it to my satisfaction.

I only have three UI screens: the title screen, the gameplay screen, and the settings popup screen (currently just the screen resolution). Still, the interaction is fairly complex. For instance, when the screen resolution is changed, both the settings screen and the screen underneath need to be redrawn. Given that, I'm pretty satisfied with how it's turning out.

I'm uploading this framework so that I can test out the resolution settings on different computers. If you want to test it for bugs, get it here.

62 days left. So far it's been slow and steady. At the current rate, I estimate I'll be able to finish what I have in mind by then. But we'll see!

(log in to comment)

Comments

Seems to run ok in win xp, python 2.6, pygame 1.8.1, old sempron 2400, gforce 6600.
framerate: 80 at 1024x728, 120 at 800x600, 160 at 640x480
Glitch: in the settings screen, the 'esc' button was drawn under the other buttons.
Seems fine on OS X in fullscreen and windowed.
claxo: How many fullscreen buttons are there for you?
at startup (windowed) I see 15 fullscreen buttons, from 1280x1024 to 640x480;
in 1280x1024 fullscreen I see 21 buttons, the lowest one 320x200
BTW, Im supposed to seen 'windowed mode buttons'? ATM, only the fullscreen ones shown.
Yeah, well, the windowed button must be off the bottom of your screen. I only have 7 buttons, and I didn't expect anyone to have as many as 21. I may need to rethink how this is selected, or do something like only show the top 12 resolutions. Thanks!
Okay, I tweaked it to give the UI more real estate than the window provides, if it needs it. The newer version's in the same place, here. Let me know whether the control is intuitive enough. People who don't have as many resolution options as claxo can see the effect by making the window really small.
Classy solution, nothing hides and theres not a dull scrollbar.

Any special reason to start with a low resolution as 720x450 ? The font looks a little small there. No big issue, resizing or clicking a reasonable button corrects the problem.