love.graphics.getPixelEffect

love.graphics.getPixelEffect Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0 It has been renamed to love.graphics.getShader. Returns the current PixelEffect. Returns nil if none is set. Function Synopsis pe = love.graphics.getPixelEffect( ) Arguments None. Returns PixelEffect pe The current PixelEffect. See Also love.graphics love.graphics.setPixelEffect

Mesh:getImage

Mesh:getImage Available since LÖVE 0.9.0 This function is not supported in earlier versions. Removed in LÖVE 0.10.0 Use Mesh:getTexture instead. Gets the Image used when drawing the Mesh. Function Synopsis image = Mesh:getImage( ) Arguments None. Returns Image image (nil) The Image used to texture the Mesh when drawing. May be nil if no Image is being used with the Mesh. See Also Mesh Mesh:setImage

PulleyJoint:setConstant

PulleyJoint:setConstant Set the total length of the rope. Setting a new length for the rope updates the maximum length values of the joint. Function Synopsis PulleyJoint:setConstant( length ) Arguments number length The new length of the rope in the joint. Returns Nothing. See Also PulleyJoint PulleyJoint:getMaxLengths

Source:setLooping

Source:setLooping Sets whether the Source should loop. Function Synopsis Source:setLooping( loop ) Arguments boolean loop True if the source should loop, false otherwise. Returns Nothing. Examples function love.load() music = love.audio.newSource("music_loop.wav")   music:setLooping(true) music:play() -- Music will now play forever, until stopped or paused. end See Also Source

love.filesystem.getSourceBaseDirectory

love.filesystem.getSourceBaseDirectory Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns the full path to the directory containing the .love file. If the game is fused to the LÖVE executable, then the directory containing the executable is returned. If love.filesystem.isFused is true, the path returned by this function can be passed to love.filesystem.mount, which will make the directory containing the main game (e.g. C:\Program Files\coolgame\) readabl

ParticleSystem:setAreaSpread

ParticleSystem:setAreaSpread Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets area-based spawn parameters for the particles. Newly created particles will spawn in an area around the emitter based on the parameters to this function. Function Synopsis ParticleSystem:setAreaSpread( distribution, dx, dy ) Arguments AreaSpreadDistribution distribution The type of distribution for new particles. number dx The maximum spawn distance from the emitter along the

love.joystick.saveGamepadMappings

love.joystick.saveGamepadMappings Available since LÖVE 0.9.2 This function is not supported in earlier versions. Saves the virtual gamepad mappings of all Joysticks that are recognized as gamepads and have either been recently used or their gamepad bindings have been modified. The mappings are stored as a string for use with love.joystick.loadGamepadMappings. Function Saves the gamepad mappings of all relevant joysticks to a file. Synopsis mappings = love.joystick.saveGamepadMappings( fi

BezierCurve:getDegree

BezierCurve:getDegree Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get degree of the Bézier curve. The degree is equal to number-of-control-points - 1. Function Synopsis degree = BezierCurve:getDegree( ) Arguments None. Returns number degree Degree of the Bézier curve. See Also BezierCurve BezierCurve:getControlPoint BezierCurve:setControlPoint BezierCurve:insertControlPoint love.math

love.run

love.run The main function, containing the main loop. A sensible default is used when left out. Function Synopsis love.run( ) Arguments None. Returns Nothing. Examples The default function for 0.10.0, 0.10.1, and 0.10.2, used if you don't supply your own. function love.run()   if love.math then love.math.setRandomSeed(os.time()) end   if love.load then love.load(arg) end   -- We don't want the first frame's dt to include time taken by love.load. if love.timer then love.timer.step() en

love.math.decompress

love.math.decompress Available since LÖVE 0.10.0 This function is not supported in earlier versions. Decompresses a CompressedData or previously compressed string or Data object. Function Synopsis rawstring = love.math.decompress( compressedData ) Arguments CompressedData compressedData The compressed data to decompress. Returns string rawstring A string containing the raw decompressed data. Function Synopsis rawstring = love.math.decompress( compressedString, format ) Arguments stri