love.mouse.getY

love.mouse.getY Returns the current y-position of the mouse. Function Synopsis y = love.mouse.getY( ) Arguments None. Returns number y The position of the mouse along the y-axis. Examples Draw a horizontal line at the mouse's y-position. function love.draw() local y = love.mouse.getY() love.graphics.line(0,y, love.graphics.getWidth(),y) end See Also love.mouse love.mouse.getX love.mouse.getPosition

love.filesystem.isDirectory

love.filesystem.isDirectory Check whether something is a directory. Function Synopsis isDir = love.filesystem.isDirectory( filename ) Arguments string filename The path to a potential directory. Returns boolean isDir True if there is a directory with the specified name. False otherwise. See Also love.filesystem love.filesystem.isFile

Source:clone

Source:clone Available since LÖVE 0.9.1 This function is not supported in earlier versions. Creates an identical copy of the Source in the stopped state. Static Sources will use significantly less memory and take much less time to be created if Source:clone is used to create them instead of love.audio.newSource, so this method should be preferred when making multiple Sources which play the same sound. Function Synopsis source = Source:clone( ) Arguments None. Returns Source source The n

love.run

love.run The main function, containing the main loop. A sensible default is used when left out. Function Synopsis love.run( ) Arguments None. Returns Nothing. Examples The default function for 0.10.0, 0.10.1, and 0.10.2, used if you don't supply your own. function love.run()   if love.math then love.math.setRandomSeed(os.time()) end   if love.load then love.load(arg) end   -- We don't want the first frame's dt to include time taken by love.load. if love.timer then love.timer.step() en

FrictionJoint:getMaxForce

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

RevoluteJoint:setLimits

RevoluteJoint:setLimits Sets the limits. Function Synopsis RevoluteJoint:setLimits( lower, upper ) Arguments number lower The lower limit, in radians. number upper The upper limit, in radians. Returns Nothing. See Also RevoluteJoint

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

PrismaticJoint:hasLimitsEnabled

PrismaticJoint:hasLimitsEnabled Available since LÖVE 0.9.0 This function is not supported in earlier versions. Checks whether the limits are enabled. Function Synopsis enabled = PrismaticJoint:hasLimitsEnabled( ) Arguments None. Returns boolean enabled True if enabled, false otherwise. See Also PrismaticJoint

love.audio.getNumSources

love.audio.getNumSources Removed in LÖVE 0.9.0 It has been renamed to love.audio.getSourceCount. Gets the current number of simultaneously playing sources. Function Synopsis numSources = love.audio.getNumSources( ) Arguments None. Returns number numSources The current number of simultaneously playing sources. See Also love.audio

Fixture:setMask

Fixture:setMask Available since LÖVE 0.8.0 This method is not supported in earlier versions. Fixture:setMask works in NOT.Categories selected will NOT collide with this fixture. If you want to work as Box2d works with Mask use instead Fixture:setFilterData Sets the category mask of the fixture. There can be up to 16 categories represented as a number from 1 to 16. This fixture will NOT collide with the fixtures that are in the selected categories if the other fixture also has a category