nogame: quit on escape;

This commit is contained in:
bjorn 2023-05-12 14:30:47 +01:00
parent b8a8aa2755
commit 776a709de1
1 changed files with 6 additions and 0 deletions

View File

@ -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