Font:getBaseline

Font:getBaseline Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the baseline of the Font. Most scripts share the notion of a baseline: an imaginary horizontal line on which characters rest. In some scripts, parts of glyphs lie below the baseline. Function Synopsis baseline = Font:getBaseline( ) Arguments None. Returns number baseline The baseline of the Font in pixels. See Also Font Font:getAscent Font:getDescent

World:setAllowSleeping

World:setAllowSleeping 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 World:setSleepingAllowed. Sets the sleep behaviour of the world. Function Synopsis World:setAllowSleeping( allowSleep ) Arguments boolean allowSleep True if the bodies are allowed to sleep or false if not. Returns Nothing. See Also World World:getAllowSleeping

Font:getHeight

Font:getHeight Gets the height of the Font. The height of the font is the size including any spacing; the height which it will need. Function Synopsis height = Font:getHeight( ) Arguments None. Returns number height The height of the Font in pixels. See Also Font

Body:setFixedRotation

Body:setFixedRotation Set whether a body has fixed rotation. Bodies with fixed rotation don't vary the speed at which they rotate. WARNING: LÖVE 0.6.2 does not yet contain the fix for a bug with this function when it is called with a false argument. Function Synopsis Body:setFixedRotation( isFixed ) Arguments boolean isFixed Whether the body should have fixed rotation. Returns Nothing. See Also Body

(Image):refresh

(Image):refresh Available since LÖVE 0.9.0 This function is not supported in earlier versions. Reloads the Image's contents from the ImageData or CompressedData used to create the image. Function Synopsis Image:refresh( ) Arguments None. Returns Nothing. Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Synopsis Image:refresh( x, y, width, height ) Arguments number x The x-axis of the top-left corner of the area within the Image to reload. numbe

Video:getDimensions

Video:getDimensions Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the width and height of the Video in pixels. Function Synopsis width, height = Video:getDimensions( ) Arguments None. Returns number width The width of the Video. number height The height of the Video. See Also Video Video:getWidth Video:getHeight

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

FrictionJoint:setMaxForce

FrictionJoint:setMaxForce Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the maximum friction force in Newtons. Function Synopsis FrictionJoint:setMaxForce( force ) Arguments number maxForce Max force in Newtons. Returns Nothing. See Also FrictionJoint FrictionJoint:getMaxForce

love.filesystem.mkdir

love.filesystem.mkdir Removed in LÖVE 0.9.0 It has been renamed to love.filesystem.createDirectory. Recursively creates a directory. When called with "a/b" it creates both "a" and "a/b", if they don't exist already. Function Synopsis ok = love.filesystem.mkdir( name ) Arguments string name The directory to create. Returns boolean ok True if the directory was created, false if not. See Also love.filesystem

World:isSleepingAllowed

World:isSleepingAllowed Available since LÖVE 0.9.0 It has been renamed from World:getAllowSleeping. Gets the sleep behaviour of the world. Function Synopsis allow = World:isSleepingAllowed( ) Arguments None. Returns boolean allow True if bodies in the world are allowed to sleep, or false if not. See Also World World:setSleepingAllowed