Difference between revisions of "love.event.quit"

(Created page with "{{newin|0.8.0|080|type=function}} Exits the LÖVE program. This has the same effect as <code>love.event.push('q')</code>. == Function == === Synopsis === <source lang="lua">...")
 
m (Fixed incorrect i8n link and set:Description)
Line 22: Line 22:
 
* [[parent::love.event]]
 
* [[parent::love.event]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Draws an arc.}}
+
{{#set:Description=Exits the LÖVE program.}}
 +
{{#set:Since=080}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|love.graphics.arc}}
+
{{i18n|love.event.quit}}

Revision as of 10:28, 4 February 2012

Available since LÖVE 0.8.0
This function is not supported in earlier versions.

Exits the LÖVE program. This has the same effect as love.event.push('q').

Function

Synopsis

love.event.quit( )

Arguments

None.

Returns

Nothing.

Example

function love.keypressed(k)
   if k == 'escape' then
      love.event.quit()
   end
end

See Also


Other Languages