summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--main.lua3
1 files changed, 3 insertions, 0 deletions
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