The Escape Button is a Feature

Today’s article will be short, but I think that this is something you should know.

When deploying your game you might want to launch it on a full screen. By doing that you won’t be able to quit your application. The only when to close your game would be through the task manager, and you can’t expect from people that will play your game to do it this way.

There is a simple solution to this problem. We need to check if our player presses an escape key. You should know how to do this from previous articles.

The only thing to do now is checking how to quit the application. We can look it up in the documentation.

And there it is. When a player wants to quit your game, he will press the escape key.