Source:getAttenuationDistances

Source:getAttenuationDistances Available since LÖVE 0.9.0 It has been renamed from Source:getDistance. Gets the reference and maximum attenuation distances of the Source. The values, combined with the current DistanceModel, affect how the Source's volume attenuates based on distance from the listener. Function Synopsis ref, max = Source:getAttenuationDistances( ) Arguments None. Returns number ref The current reference attenuation distance. If the current DistanceModel is clamped, this i

love.joystick.open

love.joystick.open Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Opens up a joystick to be used, i.e. makes it ready to use. By default joysticks that are available at the start of your game will be opened. NOTE: Unlike conventional Lua indexes, joysticks begin counting from 0 in LÖVE 0.7.2 and below. To to open the first joystick, you would use love.joystick.open(0). This is not the case in LÖVE 0.8.0 and later. Function Synopsis open = love.joystick.op

ParticleSystem:getBufferSize

ParticleSystem:getBufferSize Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the maximum number of particles the ParticleSystem can have at once. Function Synopsis size = ParticleSystem:getBufferSize( ) Arguments None. Returns number size The maximum number of particles. See Also ParticleSystem ParticleSystem:setBufferSize ParticleSystem:getCount

BezierCurve:setControlPoint

BezierCurve:setControlPoint Available since LÖVE 0.9.0 This function is not supported in earlier versions. Set coordinates of the i-th control point. Indices start with 1. Function Synopsis BezierCurve:setControlPoint(i, x, y) Arguments number i Index of the control point. number x Position of the control point along the x axis. number y Position of the control point along the y axis. Returns Nothing. See Also BezierCurve BezierCurve:getDegree BezierCurve:getControlPoint Bezie

Mesh:getDrawRange

Mesh:getDrawRange Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the range of vertices used when drawing the Mesh. Function Synopsis min, max = Mesh:getDrawRange( ) Arguments None. Returns number min (nil) The index of the first vertex used when drawing, or the index of the first value in the vertex map used if one is set for this Mesh. number max (nil) The index of the last vertex used when drawing, or the index of the last value in the vertex map u

Fixture:getDensity

Fixture:getDensity Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the density of the fixture. Function Synopsis density = Fixture:getDensity( ) Arguments None. Returns number density The fixture density in kilograms per square meter. See Also Fixture Fixture:setDensity

Contact:setEnabled

Contact:setEnabled Available since LÖVE 0.8.0 This function is not supported in earlier versions. Enables or disables the contact. Function Synopsis Contact:setEnabled( enabled ) Arguments boolean enabled True to enable or false to disable. Returns Nothing. See Also Contact Contact:isEnabled

(File):open

(File):open Open the file for write, read or append. Function Synopsis ok, err = File:open( mode ) Arguments FileMode mode The mode to open the file in. Returns boolean ok True on success, false otherwise. string err The error string if an error occurred. Notes If you are getting the error message "Could not set write directory", try setting the save directory. This is done either with love.filesystem.setIdentity or by setting the identity field in love.conf (only available with love 0.

Canvas:getPixel

Canvas:getPixel Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 Use Canvas:newImageData instead. Gets the pixel at the specified position from a Canvas. Valid x and y values start at 0 and go up to canvas width and height minus 1. This function can be very slow: it can cause the CPU to wait for the GPU to finish all the work currently in its queue, which can be a whole frame's worth (or more.) Function Synopsis r, g, b, a = Canvas:getPixel( x, y ) Arguments number x The position

ParticleSystem:getCount

ParticleSystem:getCount Available since LÖVE 0.9.0 It has been renamed from ParticleSystem:count. Gets the number of particles that are currently in the system. Function Synopsis count = ParticleSystem:getCount( ) Arguments None. Returns number count The current number of live particles. See Also ParticleSystem ParticleSystem:getBufferSize