Updated README.md for keyboard changes

This commit is contained in:
rxi
2016-09-24 17:05:20 +01:00
parent bafcc12c95
commit 7a1feba973

View File

@@ -20,8 +20,10 @@ function love.draw()
love.graphics.print('Hello World!', 20, 20)
end
function love.keypressed(code)
if code == 1 then os.exit() end
function love.keypressed(key)
if key == "escape" then
os.exit()
end
end
```