love.audio.newSource

love.audio.newSource Creates a new Source from a filepath, File, Decoder or SoundData. Sources created from SoundData are always static. 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 source = love.audio.newSource( filename, type ) Arguments string filename The filepath to the audio file. SourceType type ("stream") Streaming or

RevoluteJoint:enableMotor

RevoluteJoint:enableMotor Available since LÖVE 0.8.0 This method is not supported in earlier versions. Removed in LÖVE 0.9.0 It has been renamed to RevoluteJoint:setMotorEnabled. Starts or stops the joint motor. Function Synopsis RevoluteJoint:enableMotor( enable ) Arguments boolean enable True to enable, false to disable. Returns Nothing. See Also RevoluteJoint

love.graphics.clear

love.graphics.clear Clears the screen to the background color in LÖVE 0.9.2 and earlier, or to the specified color in 0.10.0 and newer. This function is called automatically before love.draw in the default love.run function. See the example in love.run for a typical use of this function. Note that the scissor area bounds the cleared region. Function Clears the screen to the background color in 0.9.2 and earlier, or to transparent black (0, 0, 0, 0) in LÖVE 0.10.0 and newer. Synopsis love.gr

SpriteBatch:unbind

SpriteBatch:unbind Available since LÖVE 0.8.0 It has been renamed from SpriteBatch:unlock. Removed in LÖVE 0.10.0 It happens automatically since version 0.9.2. Use SpriteBatch:flush if absolutely necessary.. Unbinds the SpriteBatch. All SpriteBatch:bind calls should have a matching SpriteBatch:unbind after the batch has been updated. Function Synopsis SpriteBatch:unbind( ) Arguments None. Returns Nothing. See Also SpriteBatch SpriteBatch:bind

love.touchpressed

love.touchpressed Available since LÖVE 0.10.0 This function is not supported in earlier versions. Callback function triggered when the touch screen is touched. Function Synopsis love.touchpressed( 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 press inside the window, in pixels. number y The y-axis position of the touch press inside the window, in pixels. number dx The x-axis movement of the touch p

WheelJoint:isMotorEnabled

WheelJoint:isMotorEnabled Available since LÖVE 0.8.0 This method is not supported in earlier versions. Checks if the joint motor is running. Function Synopsis on = WheelJoint:isMotorEnabled( ) Arguments None. Returns boolean on The status of the joint motor. See Also WheelJoint

SpriteBatch:setColor

SpriteBatch:setColor Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the color that will be used for the next add and set operations. Calling the function without arguments will disable all per-sprite colors for the SpriteBatch. In version 0.9.2 and older, the global color set with love.graphics.setColor will not work on the SpriteBatch if any of the sprites has its own color. Function Synopsis SpriteBatch:setColor( r, g, b, a ) Arguments number r The am

Text:addf

Text:addf Available since LÖVE 0.10.0 This function is not supported in earlier versions. Adds additional formatted / colored text to the Text object at the specified position. Function Synopsis index = Text:addf( textstring, wraplimit, alignmode, x, y, angle, sx, sy, ox, oy, kx, ky ) Arguments string textstring The text to add to the object. number wraplimit The maximum width in pixels of the text before it gets automatically wrapped to a new line. AlignMode align The alignment of the

Source:setDistance

Source:setDistance 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 Source:setAttenuationDistances. Sets the reference and maximum distance of the source. Function Synopsis Source:setDistance( ref, max ) Arguments number ref The new reference distance. number max The new maximum distance. Returns Nothing. See Also Source

love.filesystem.getUserDirectory

love.filesystem.getUserDirectory Returns the path of the user's directory Function Synopsis path = love.filesystem.getUserDirectory( ) Arguments None. Returns string path The path of the user's directory See Also love.filesystem