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

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:getAllowSleeping

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

love.system.getPowerInfo

love.system.getPowerInfo Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets information about the system's power supply. Function Synopsis state, percent, seconds = love.system.getPowerInfo( ) Arguments None. Returns PowerState state The basic state of the power supply. number percent (nil) Percentage of battery life left, between 0 and 100. nil if the value can't be determined or there's no battery. number seconds (nil) Seconds of battery life left. ni

love.graphics.setCaption

love.graphics.setCaption Removed in LÖVE 0.9.0 Moved to the love.window module as love.window.setTitle. Sets the window caption. Function Synopsis love.graphics.setCaption( caption ) Arguments string caption The new window caption. Returns Nothing. See Also love.graphics

WheelJoint:getMaxMotorTorque

WheelJoint:getMaxMotorTorque Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the maximum motor torque. Function Synopsis maxTorque = WheelJoint:getMaxMotorTorque( ) Arguments None. Returns number maxTorque The maximum torque of the joint motor in newton meters. See Also WheelJoint WheelJoint:setMaxMotorTorque

WheelJoint:setMaxMotorTorque

WheelJoint:setMaxMotorTorque Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets a new maximum motor torque. Function Synopsis WheelJoint:setMaxMotorTorque( maxTorque ) Arguments number maxTorque The new maximum torque for the joint motor in newton meters. Returns Nothing See Also WheelJoint WheelJoint:getMaxMotorTorque

Body:getLinearDamping

Body:getLinearDamping Gets the linear damping of the Body. The linear damping is the rate of decrease of the linear velocity over time. A moving body with no damping and no external forces will continue moving indefinitely, as is the case in space. A moving body with damping will gradually stop moving. Damping is not the same as friction - they can be modelled together. Function Synopsis damping = Body:getLinearDamping( ) Arguments None. Returns number damping The value of the linear damp

BezierCurve:translate

BezierCurve:translate Available since LÖVE 0.9.0 This function is not supported in earlier versions. Move the Bézier curve by an offset. Function Synopsis BezierCurve:translate(dx, dy) Arguments number dx Offset along the x axis. number dy Offset along the y axis. Returns Nothing. See Also BezierCurve:rotate BezierCurve:scale BezierCurve love.math