love.keyboard.isDown

love.keyboard.isDown Checks whether a certain key is down. Not to be confused with love.keypressed or love.keyreleased. Function Synopsis down = love.keyboard.isDown( key ) Arguments KeyConstant key The key to check. Returns boolean down True if the key is down, false if not. Function Available since LÖVE 0.7.2 This variant is not supported in earlier versions. Synopsis anyDown = love.keyboard.isDown( key, ... ) Arguments KeyConstant key A key to check. KeyConstant ... Additional k

love.audio.rewind

love.audio.rewind Rewinds all playing audio. Function Synopsis love.audio.rewind( ) Arguments None. Returns Nothing. Function Synopsis love.audio.rewind( source ) Arguments Source source The source to rewind. Returns Nothing. See Also love.audio

love.graphics.drawq

love.graphics.drawq Removed in LÖVE 0.9.0 It has been merged into love.graphics.draw. Draw a Quad with the specified Image on screen. Function Synopsis love.graphics.drawq( image, quad, x, y, r, sx, sy, ox, oy, kx, ky ) Arguments Image image An image to texture the quad with. Quad quad The quad to draw on screen. number x The position to draw the object (x-axis). number y The position to draw the object (y-axis). number r (0) Orientation (radians). number sx (1) Scale factor (x-axis)

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

love.mouse.setX

love.mouse.setX Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the current X position of the mouse. The coordinates of the mouse pointer are always whole numbers, but even if you try setting a non-integer, löve will floor it internally. Function Synopsis love.mouse.setX( x ) Arguments number x The new position of the mouse along the x-axis. Returns Nothing. See Also love.mouse love.mouse.setPosition love.mouse.setY love.mouse.getX

(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.

ParticleSystem:getAreaSpread

ParticleSystem:getAreaSpread Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the area-based spawn parameters for the particles. Function Synopsis distribution, dx, dy = ParticleSystem:getAreaSpread( ) Arguments None. Returns AreaSpreadDistribution distribution The type of distribution for new particles. number dx The maximum spawn distance from the emitter along the x-axis for uniform distribution, or the standard deviation along the x-axis for normal

love.filesystem.isFused

love.filesystem.isFused Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets whether the game is in fused mode or not. If a game is in fused mode, its save directory will be directly in the Appdata directory instead of Appdata/LOVE/. The game will also be able to load C Lua dynamic libraries which are located in the save directory. A game is in fused mode if the source .love has been fused to the executable (see Game Distribution), or if "--fused" has been g

PulleyJoint:getLengthA

PulleyJoint:getLengthA Available since LÖVE 0.8.0 This method is not supported in earlier versions. Get the current length of the rope segment attached to the first body. Function Synopsis length = PulleyJoint:getLengthA( ) Arguments None. Returns number length The length of the rope segment. See Also PulleyJoint

Source:setRolloff

Source:setRolloff Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the rolloff factor which affects the strength of the used distance attenuation. Extended information and detailed formulas can be found in the chapter "3.4. Attenuation By Distance" of OpenAL 1.1 specification. Function Synopsis Source:setRolloff( rolloff ) Arguments number rolloff The new rolloff factor. Returns Nothing. See Also Source