diff --git a/etc/nogame.lua b/etc/nogame.lua index 8ef883f7..da0da34e 100644 --- a/etc/nogame.lua +++ b/etc/nogame.lua @@ -36,3 +36,9 @@ function lovr.draw(pass) pass:setColor(.9, .9, .9, fade) pass:text('No game :(', -.005, subtitlePosition, -3, .15, 0, 0, 1, 0, nil, 'center', 'top') end + +function lovr.keypressed(key) + if key == 'escape' then + lovr.event.quit() + end +end