Shape:setCategory

Shape:setCategory Removed in LÖVE 0.8.0 Use Fixture:setCategory instead. Sets the categories this shape is a member of. Sets the categories of this shape by specifying numbers from 1-16 as parameters. Categories can be used to prevent certain shapes from colliding. Function Synopsis Shape:setCategory( ... ) Arguments numbers ... Numbers from 1-16 Returns Nothing. See Also Shape

SpriteBatch:setImage

SpriteBatch:setImage Available since LÖVE 0.7.2 This method is not supported in earlier versions. Removed in LÖVE 0.10.0 Use SpriteBatch:setTexture instead. Replaces the image used for the sprites. Function Synopsis SpriteBatch:setImage( image ) Arguments Image image The new Image to use for the sprites. Returns Nothing. See Also SpriteBatch SpriteBatch:getImage

love.touchreleased

love.touchreleased Available since LÖVE 0.10.0 This function is not supported in earlier versions. Callback function triggered when the touch screen stops being touched. Function Synopsis love.touchreleased( id, x, y, dx, dy, pressure ) Arguments light userdata id The identifier for the touch press. number x The x-axis position of the touch inside the window, in pixels. number y The y-axis position of the touch inside the window, in pixels. number dx The x-axis movement of the touch in

ParticleSystem:setRelativeRotation

ParticleSystem:setRelativeRotation Available since LÖVE 0.9.1 This function is not supported in earlier versions. Sets whether particle angles and rotations are relative to their velocities. If enabled, particles are aligned to the angle of their velocities and rotate relative to that angle. Function Synopsis ParticleSystem:setRelativeRotation( enable ) Arguments boolean enable True to enable relative particle rotation, false to disable it. Returns Nothing. See Also ParticleSystem P

Decoder:getDuration

Decoder:getDuration Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the duration of the sound file. It may not always be sample-accurate, and it may return -1 if the duration cannot be determined at all. Function Synopsis duration = Decoder:getDuration( ) Arguments None. Returns number duration The duration of the sound file in seconds, or -1 if it cannot be determined. See Also Decoder Source:getDuration SoundData:getDuration

ParticleSystem:setSizeVariation

ParticleSystem:setSizeVariation Sets the amount of size variation (0 meaning no variation and 1 meaning full variation between start and end). Function Synopsis ParticleSystem:setSizeVariation( variation ) Arguments number variation The amount of variation (0 meaning no variation and 1 meaning full variation between start and end). Returns Nothing. See Also ParticleSystem

(Image):setWrap

(Image):setWrap Sets the wrapping properties of an Image. This function sets the way an Image is repeated when it is drawn with a Quad that is larger than the image's extent. An image may be clamped or set to repeat in both horizontal and vertical directions. Clamped images appear only once, but repeated ones repeat as many times as there is room in the Quad. N.B. If you use a Quad that is larger than the image extent and do not use repeated tiling, there may be an unwanted visual effect of

BezierCurve:renderSegment

BezierCurve:renderSegment Available since LÖVE 0.10.0 This function is not supported in earlier versions. Get a list of coordinates on a specific part of the curve, to be used with love.graphics.line. This function samples the Bézier curve using recursive subdivision. You can control the recursion depth using the depth parameter. If you are just need to know the position on the curve given a parameter, use BezierCurve:evaluate. Function Synopsis coordinates = BezierCurve:renderSegment( s

Fixture:setDensity

Fixture:setDensity Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the density of the fixture. Call Body:resetMassData if this needs to take effect immediately. Function Synopsis Fixture:setDensity( density ) Arguments number density The fixture density in kilograms per square meter. Returns Nothing. See Also Fixture Fixture:getDensity

Body:setAngle

Body:setAngle Set the angle of the body. The angle is measured in radians. If you need to transform it from degrees, use math.rad. A value of 0 radians will mean "looking to the right". .Although radians increase counter-clockwise, the y axis points down so it becomes clockwise from our point of view. It is possible to cause a collision with another body by changing its angle. Function Synopsis Body:setAngle( angle ) Arguments number angle The angle in radians. Returns Nothing. See Al