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

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

love.load

love.load This function is called exactly once at the beginning of the game. Function Synopsis love.load( arg ) Arguments table arg Command line arguments given to the game. Returns Nothing. Examples Establish some variables/resources on the game load, so that they can be used repeatedly in other functions (such as love.draw). function love.load() hamster = love.graphics.newImage("hamster.png") x = 50 y = 50 end   function love.draw() love.graphics.draw(hamster, x, y) end See

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

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

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

Canvas:getFSAA

Canvas:getFSAA Available since LÖVE 0.9.1 This function is not supported in earlier versions. Removed in LÖVE 0.10.0 It has been renamed to Canvas:getMSAA. Gets the number of antialiasing samples used when drawing to the Canvas. This may be different than the number used as an argument to love.graphics.newCanvas if the system running LÖVE doesn't support that number. Function Synopsis samples = Canvas:getFSAA( ) Arguments None. Returns number samples The number of antialiasing sampl

love.system.getOS

love.system.getOS Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the current operating system. In general, LÖVE abstracts away the need to know the current operating system, but there are a few cases where it can be useful (especially in combination with os.execute.) Function Synopsis osString = love.system.getOS( ) Arguments None. Returns string osString The current operating system. "OS X", "Windows", "Linux", "Android" or "iOS". Notes In LÖVE ver

Contact:getPositions

Contact:getPositions Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns the contact points of the two colliding fixtures. There can be one or two points. Function Synopsis x1, y1, x2, y2 = Contact:getPositions( ) Arguments None. Returns number x1 The x coordinate of the first contact point. number y1 The y coordinate of the first contact point. number x2 The x coordinate of the second contact point. number y2 The y coordinate of the second contact p