ParletteSoftware / bitfl

Billy in the Fat Lane
GNU General Public License v3.0
0 stars 0 forks source link

Add quit menu #78

Closed cparlette closed 11 years ago

cparlette commented 11 years ago

Adds a quit menu to all parts of the game. Options at the quit menu are currently to return to the main menu or to quit completely. This makes it so even when you are testing things, you can just hit Q, then Q again to quit completely.

matthew-parlette commented 11 years ago

If you try to quit from the main menu, it asks if you want to quit completely or to the main menu, maybe there can be a display() parameter to show this option or not? And actually if the option isn't shown, it should just default to the quit completely?

Also maybe we have an option to confirm quit (either to the main menu or completely) while there is a game running, just to make sure. or is that overkill since they already need to hit q AND q or m?

cparlette commented 11 years ago

@matthew-parlette Try it now, from the main menu "m" is not an option anymore, and you can now specify more quit options if you need to, which makes the menu more flexible.

matthew-parlette commented 11 years ago

Better, one final thing is that when I quit completely (I did this from in a game, but I don't think it matters where you quit from), I get True, True printing on the screen:

Quit Menu q. Quit BITFL completely m. Return to the Main Menu (Enter to cancel)

True True matt@matt-e6420:~/src/bitfl$

I believe this is from 466a17cee9391ee4ebd0c8b993da321502ef2f82, line 198

It reminds me of http://www.youtube.com/watch?v=UDTZCgsZGeA

cparlette commented 11 years ago

Haha whoops, yeah I was dumb and used print statements for debugging instead of log_debug. Maybe I should have changed it so it plays that video instead