love.audio.getPosition

love.audio.getPosition Returns the position of the listener. Please note that positional audio only works for mono (i.e. non-stereo) sources. Function Synopsis x, y, z = love.audio.getPosition( ) Arguments None. Returns number x The X position of the listener. number y The Y position of the listener. number z The Z position of the listener. See Also love.audio

Canvas:getWidth

Canvas:getWidth Gets the width of the Canvas. Function Synopsis width = Canvas:getWidth( ) Arguments None. Returns number width The width of the Canvas, in pixels. See Also Canvas Canvas:getHeight Canvas:getDimensions

ParticleSystem:getRadialAcceleration

ParticleSystem:getRadialAcceleration Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the radial acceleration (away from the emitter). Function Synopsis min, max = ParticleSystem:getRadialAcceleration( ) Arguments Nothing. Returns number min The minimum acceleration. number max The maximum acceleration. See Also ParticleSystem ParticleSystem:setRadialAcceleration

love.physics.newRopeJoint

love.physics.newRopeJoint Available since LÖVE 0.8.0 This function is not supported in earlier versions. Creates a joint between two bodies. Its only function is enforcing a max distance between these bodies. There is a bug in version 0.8.0 where the cooridnates of the anchors are divided by the number from love.physics.getMeter. As a workaround, multiply your anchor coordinates with that number and it should work like expected. Function Synopsis joint = love.physics.newRopeJoint( body1,

BezierCurve:scale

BezierCurve:scale Available since LÖVE 0.9.0 This function is not supported in earlier versions. Scale the Bézier curve by a factor. Function Synopsis BezierCurve:scale(s, ox, oy) Arguments number s Scale factor. number ox (0) X coordinate of the scaling center. number oy (0) Y coordinate of the scaling center. Returns Nothing. See Also BezierCurve:translate BezierCurve:rotate BezierCurve love.math

ChainShape:setPrevVertex

ChainShape:setPrevVertex Available since LÖVE 0.8.0 This function is not supported in earlier versions. Removed in LÖVE 0.9.0 It has been renamed to ChainShape:setPreviousVertex. Sets a vertex that establishes a connection to the previous shape. This can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. Function Synopsis ChainShape:setPrevVertex( x, y ) Arguments number x The x-component of the vertex. number y The y-component

love.graphics.getWidth

love.graphics.getWidth Available since LÖVE 0.2.1 This function is not supported in earlier versions. Gets the width in pixels of the window. Function Synopsis width = love.graphics.getWidth( ) Arguments None. Returns number width The width of the window. See Also love.graphics love.graphics.getHeight love.graphics.getDimensions

Quad:setViewport

Quad:setViewport Sets the texture coordinates according to a viewport. Function Synopsis Quad:setViewport( x, y, w, h ) Arguments number x The top-left corner along the x-axis. number y The top-right corner along the y-axis. number w The width of the viewport. number h The height of the viewport. Returns Nothing. See Also Quad

BezierCurve:getDerivative

BezierCurve:getDerivative Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get the derivative of the Bézier curve. This function can be used to rotate sprites moving along a curve in the direction of the movement and compute the direction perpendicular to the curve at some parameter t. Function Synopsis derivative = BezierCurve:getDerivative() Arguments None. Returns BezierCurve derivative The derivative curve. See Also BezierCurve love.math

Text:set

Text:set Available since LÖVE 0.10.0 This function is not supported in earlier versions. Replaces the contents of the Text object with a new unformatted string. Function Synopsis Text:set( textstring ) Arguments string textstring The new string of text to use. Returns Nothing. Function Synopsis Text:set( coloredtext ) Arguments table coloredtext A table containing colors and strings to use as the new text, in the form of {color1, string1, color2, string2, ...}. table color1 A table c