How to close the window? [SOLVED]
Posted: Sun Jul 20, 2014 4:50 pm
From my previous help posts, I think most of you know that I'm relatively new to love2d.
Anyways, I'm trying to make it so when you hit the >esc< button on your keyboard, the game will close. I've looked around the wiki and didn't find anything (or maybe i'm bad at looking for things).
Here's the code I want it to work it:
Anyways, I'm trying to make it so when you hit the >esc< button on your keyboard, the game will close. I've looked around the wiki and didn't find anything (or maybe i'm bad at looking for things).
Here's the code I want it to work it:
Code: Select all
if love.keyboard.isDown("escape") then
--exit the game
end