do-while loop that wants _endgame to be... any... value?
Inside of that do-while is a while(true).
Inside of that while(true) is a WHOLE bunch of crap that gets them into the main game loop. This is atrocious.
Proposed v2 mechanism:
try
{
load the "Menu" game via XML.
while(true)
{
get player input.
check for keys.
If a key is found, run the events.
}
}
catch(GameEndException e)
{
Not sure what goes here yet. Maybe print out e.getmessage()?
}
The v1 mechanism works something like this:
do-while loop that wants _endgame to be... any... value? Inside of that do-while is a while(true). Inside of that while(true) is a WHOLE bunch of crap that gets them into the main game loop. This is atrocious.
Proposed v2 mechanism: