Difference between revisions of "love.quit"

m
m
Line 21: Line 21:
 
[[Category:Callbacks]]
 
[[Category:Callbacks]]
 
{{#set:Description=Callback function triggered when the game is closed.}}
 
{{#set:Description=Callback function triggered when the game is closed.}}
 +
{{#set:Subcategory=General}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.quit}}
 
{{i18n|love.quit}}

Revision as of 07:01, 31 October 2013

Available since LÖVE 0.7.0
This callback is not supported in earlier versions.

Callback function triggered when the game is closed.

Function

Synopsis

r = love.quit( )

Arguments

None.

Returns

boolean r
Abort quitting. If true, do not close the game.

Example

function love.quit()
  --This will be printed to the console on quit
  print("Thanks for playing. Please play again soon!")
end

See Also


Other Languages