Page 1 of 1

How to exit game?

Posted: Sun Jul 27, 2014 5:35 pm
by bibby
Slowly, at only a few hours a month, I'm having good luck with love2d on android.
What I'm not able to do so far is cleanly exit the application. When I want to close the game, I have to force-kill the app.

What is the recommended method for closing the game intentionally (ie, a Quit button)?

Re: How to exit game?

Posted: Sun Jul 27, 2014 5:45 pm
by Davidobot
Just as you would do in a normal game:

Code: Select all

love.event.quit() 

Re: How to exit game?

Posted: Sun Jul 27, 2014 6:43 pm
by bibby
Thanks!