Decoder:getBitDepth

Decoder:getBitDepth Available since LÖVE 0.9.0 It has been renamed from Decoder:getBits. Returns the number of bits per sample. Function Synopsis bitDepth = Decoder:getBitDepth( ) Arguments None. Returns number bitDepth Either 8, or 16. See Also Decoder

Body:setUserData

Body:setUserData Available since LÖVE 0.9.1 This method is not supported in earlier versions. Associates a Lua value with the Body. To delete the reference, explicitly pass nil. Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash. Function Synopsis Body:setUserData( value ) Arguments any value The Lua value to associate with the Body. Returns Nothing. See Also Body Body:getUserData

WheelJoint:setMotorEnabled

WheelJoint:setMotorEnabled Available since LÖVE 0.9.0 This method is not supported in earlier versions. Starts and stops the joint motor. Function Synopsis WheelJoint:setMotorEnabled( enable ) Arguments boolean enable True turns the motor on and false turns it off. Returns Nothing. See Also WheelJoint

love.audio.getVelocity

love.audio.getVelocity Returns the velocity of the listener. Function Synopsis x, y, z = love.audio.getVelocity( ) Arguments None. Returns number x The X velocity of the listener. number y The Y velocity of the listener. number z The Z velocity of the listener. See Also love.audio

love.image.newImageData

love.image.newImageData Creates a new ImageData object. This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! Function Synopsis imageData = love.image.newImageData( width, height ) Arguments number width The width of the ImageData. number height The height of the ImageData. Returns ImageData imageData The new blank ImageData object. Each pixel's col

enet.peer:ping interval

enet.peer:ping interval Specifies the interval in milliseconds that pings are sent to the other end of the connection (defaults to 500). Function Synopsis peer:ping_interval(interval) Arguments number interval Time in milliseconds to wait before automatically calling peer:ping(). Returns Nothing. See Also lua-enet enet.peer enet.peer:ping

love.audio.getNumSources

love.audio.getNumSources Removed in LÖVE 0.9.0 It has been renamed to love.audio.getSourceCount. Gets the current number of simultaneously playing sources. Function Synopsis numSources = love.audio.getNumSources( ) Arguments None. Returns number numSources The current number of simultaneously playing sources. See Also love.audio

(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

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