Difference between revisions of "love.quit"

m
m (Add link to related page.)
Line 19: Line 19:
 
== See Also ==
 
== See Also ==
 
* [[parent::love]]
 
* [[parent::love]]
 +
* [[love.event.quit]]
 
[[Category:Callbacks]]
 
[[Category:Callbacks]]
 
{{#set:Description=Callback function triggered when the game is closed.}}
 
{{#set:Description=Callback function triggered when the game is closed.}}

Revision as of 04:03, 14 November 2014

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