Escape is the New Black

--

OK so by now you’ve probably played with the settings and tried out the game in full screen mode for full effect. Right?

I hope not. Because we’ve got no way to quit. You’ll have to do all kinds of Vulcan hand gestures to recover control of your computer. (Unless you want to keep playing all day.)

Fortunately there’s a handly liottle command Application.Quit();

All we need to do in our Game Manager (where we are keeping track if the Game is over and keystrokes occur) is to check if the escape key was pressed and if so, Qut() the application.

--

--