Difference between revisions of "love.quit"

m
m
Line 4: Line 4:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
r = love.quit()
+
r = love.quit( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===

Revision as of 08:38, 24 November 2012

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