The Escape Button is a Feature

Kenneth Powell
2 min readNov 27, 2022

The game is over and the gaming fix is satisfied now its time to exit the screen and the player doesn’t know what to do, well there’s a cure for that. It’s called the Escape key. Short for Escape, Esc is a key found on the top-left corner of a computer keyboard and allows the user to abort or cancel an operation. For example, if a slow web page was loading on an Internet browser you could press the escape key to stop the download and not have to wait for it to timeout. The Esc (Escape key) has been the exit button forever. So in this case the Escape key will be the way to get out of the Game.

The first part of filling in pseudo code for this feature is in your Game Manager and under the Update function the “if” statement with the input (.) GetKeyDown and the Key Code is (.) Escape. The scripting API would be Application (.) Quit. An API script is an application programming interface (API) that interfaces between an application and scripting language. It provides the connection points with the application that allow you to control it. As seen applying the Esc key is simple to programming it to the code.

--

--

Kenneth Powell

The one who gets wisdom loves life; the one who cherishes understanding will soon prosper. Proverbs 19:8