Skip to content

Commit 6cd2d35

Browse files
author
S0lll0s
committed
Make escape key quit demo
@Bobbyjoness here you go
1 parent 4ac717e commit 6cd2d35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,8 @@ function love.draw()
3939
end
4040

4141
function love.keypressed(key)
42+
if key == "escape" then
43+
love.event.push("quit")
44+
end
4245
splash:skip()
4346
end

0 commit comments

Comments
 (0)