From b291008e6fe01a9ee8d68c4583975469e3bf89f1 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 19 May 2016 17:27:27 +0200 Subject: Quick quit key --- main.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.lua') diff --git a/main.lua b/main.lua index 4302cb9..19fca2a 100644 --- a/main.lua +++ b/main.lua @@ -48,6 +48,9 @@ function love.keypressed (key) if key == "x" then debug = not debug end + if key == "escape" then + love.event.quit() + end end -- KeyReleased -- cgit v1.1