How to exit game?

A project to port LÖVE to Android handhelds
Locked
bibby
Prole
Posts: 2
Joined: Sat Mar 22, 2014 8:27 pm

How to exit game?

Post 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)?
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: How to exit game?

Post by Davidobot »

Just as you would do in a normal game:

Code: Select all

love.event.quit() 
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
bibby
Prole
Posts: 2
Joined: Sat Mar 22, 2014 8:27 pm

Re: How to exit game?

Post by bibby »

Thanks!
Locked

Who is online

Users browsing this forum: No registered users and 5 guests