mirror of https://github.com/bjornbytes/lovr.git
nogame: quit on escape;
This commit is contained in:
parent
b8a8aa2755
commit
776a709de1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue