love.mouse.getPosition

love.mouse.getPosition Returns the current position of the mouse. Function Synopsis x, y = love.mouse.getPosition( ) Arguments None. Returns number x The position of the mouse along the x-axis. number y The position of the mouse along the y-axis. Examples Use getPosition to help draw a custom mouse image function love.load() love.mouse.setVisible(false) -- make default mouse invisible img = love.graphics.newImage("mouse.png") -- load in a custom mouse image end function love.draw()

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

Body:setMassFromShapes

Body:setMassFromShapes Removed in LÖVE 0.8.0 This method is not supported in that and later versions. Sets mass properties from attatched shapes. If you feel that finding the correct mass properties is tricky, then this function may be able to help you. After creating the needed shapes on the Body, a call to this function will set the mass properties based on those shapes. Remember to call this function after adding the shapes. Setting the mass properties this way always results in a rea

PrismaticJoint:enableMotor

PrismaticJoint:enableMotor 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 PrismaticJoint:setMotorEnabled. Starts or stops the joint motor. Function Synopsis PrismaticJoint:enableMotor( enable ) Arguments boolean enable True to enable, false to disable. Returns Nothing. See Also PrismaticJoint

SpriteBatch:set

SpriteBatch:set Available since LÖVE 0.8.0 This method is not supported in earlier versions. Changes a sprite in the batch. This requires the identifier returned by add and addq. Function Synopsis SpriteBatch:set( id, x, y, r, sx, sy, ox, oy, kx, ky ) Arguments number id The identifier of the sprite that will be changed. 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 (

BezierCurve:getControlPoint

BezierCurve:getControlPoint Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get coordinates of the i-th control point. Indices start with 1. Function Synopsis x, y = BezierCurve:getControlPoint(i) Arguments number i Index of the control point. Returns number x Position of the control point along the x axis. number y Position of the control point along the y axis. See Also BezierCurve BezierCurve:getDegree BezierCurve:setControlPoint BezierCurve:

SpriteBatch:getCount

SpriteBatch:getCount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the number of sprites currently in the SpriteBatch. Function Synopsis count = SpriteBatch:getCount( ) Arguments None. Returns number count The number of sprites currently in the batch. See Also SpriteBatch SpriteBatch:getBufferSize

love.window.setDisplaySleepEnabled

love.window.setDisplaySleepEnabled Available since LÖVE 0.10.0 This function is not supported in earlier versions. Sets whether the display is allowed to sleep while the program is running. Display sleep is disabled by default. Some types of input (e.g. joystick button presses) might not prevent the display from sleeping, if display sleep is allowed. Function Synopsis love.window.setDisplaySleepEnabled( enable ) Arguments boolean enable True to enable system display sleep, false to disab

love.graphics.getDefaultImageFilter

love.graphics.getDefaultImageFilter Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0 It has been renamed to love.graphics.getDefaultFilter. Returns the default scaling filters. Function Synopsis min, mag = love.graphics.getDefaultImageFilter( ) Arguments None. Returns FilterMode min Filter mode used when scaling the image down. FilterMode mag Filter mode used when scaling the image up. See Also love.graphics love.graphics.setDefaultImageFilter

love.timer.sleep

love.timer.sleep Pauses the current thread for the specified amount of time. This function causes the entire thread to pause for the duration of the sleep. Graphics will not draw, input events will not trigger, code will not run, and the window will be unresponsive if you use this as "wait()" in the main thread. Use love.update or a Timer library for that instead. Function Available since LÖVE 0.8.0 This behaviour is not supported in earlier versions. Synopsis love.timer.sleep( s ) Argume