SpriteBatch:clear

SpriteBatch:clear Removes all sprites from the buffer. Function Synopsis SpriteBatch:clear( ) Arguments None. Returns Nothing. See Also SpriteBatch

love.conf

love.conf Introduction If a file called conf.lua is present in your game folder (or .love file), it is run before the LÖVE modules are loaded. You can use this file to overwrite the love.conf function, which is later called by the LÖVE 'boot' script. Using the love.conf function, you can set some configuration options, and change things like the default size of the window, which modules are loaded, and other stuff. love.conf The love.conf function takes one argument: a table filled with all th

WheelJoint:getJointTranslation

WheelJoint:getJointTranslation Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the current joint translation. Function Synopsis position = WheelJoint:getJointTranslation( ) Arguments None. Returns number position The translation of the joint in meters. See Also WheelJoint

love.window.setMode

love.window.setMode Available since LÖVE 0.9.0 Moved from love.graphics.setMode. Sets the display mode and properties of the window. If width or height is 0, setMode will use the width and height of the desktop. Changing the display mode may have side effects: for example, canvases will be cleared and values sent to shaders with Shader:send will be erased. Make sure to save the contents of canvases beforehand or re-draw to them afterward if you need to. Function Synopsis success = love.

Source:stop

Source:stop Available since LÖVE 0.7.0 This function is not supported in earlier versions. Stops a Source. Function Synopsis Source:stop() Arguments None. Returns Nothing. See Also Source

Contact:resetFriction

Contact:resetFriction Available since LÖVE 0.8.0 This function is not supported in earlier versions. Resets the contact friction to the mixture value of both fixtures. Function Synopsis Contact:resetFriction( ) Arguments None. Returns Nothing. See Also Contact

Contact:getFixtures

Contact:getFixtures Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the two Fixtures that hold the shapes that are in contact. Function Synopsis fixtureA, fixtureB = Contact:getFixtures( ) Arguments None. Returns Fixture fixtureA The first Fixture. Fixture fixtureB The second Fixture. See Also Contact

Source:getDirection

Source:getDirection Available since LÖVE 0.7.0 This function is not supported in earlier versions. Gets the direction of the Source. Function Synopsis x, y, z = Source:getDirection( ) Arguments None. Returns number x The X part of the direction vector. number y The Y part of the direction vector. number z The Z part of the direction vector. See Also Source

PrismaticJoint:setLowerLimit

PrismaticJoint:setLowerLimit Sets the lower limit. Function Synopsis PrismaticJoint:setLowerLimit( lower ) Arguments number lower The lower limit, usually in meters. Returns Nothing. See Also PrismaticJoint

love.graphics.newImageFont

love.graphics.newImageFont Creates a new Font by loading a specifically formatted image. In versions prior to 0.9.0, LÖVE expects ISO 8859-1 encoding for the glyphs string. This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! Function Synopsis font = love.graphics.newImageFont( filename, glyphs ) Arguments string filename The filepath to the image fi