summaryrefslogtreecommitdiffhomepage
path: root/main.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-19 17:27:27 +0200
committerAki <nthirtyone@gmail.com>2016-05-19 17:27:27 +0200
commitb291008e6fe01a9ee8d68c4583975469e3bf89f1 (patch)
tree96e42b8562575fddbc8463eb0c9fde40f78c2bda /main.lua
parent304266b7740d2b4d56a3d16647c2cf97ef43ddc2 (diff)
downloadroflnauts-b291008e6fe01a9ee8d68c4583975469e3bf89f1.zip
roflnauts-b291008e6fe01a9ee8d68c4583975469e3bf89f1.tar.gz
roflnauts-b291008e6fe01a9ee8d68c4583975469e3bf89f1.tar.bz2
Quick quit key
Diffstat (limited to 'main.lua')
-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