love.window.showMessageBox

love.window.showMessageBox Available since LÖVE 0.9.2 This function is not supported in earlier versions. Displays a message box dialog above the love window. The message box contains a title, optional text, and buttons. This function will pause all execution of the main thread until the user has clicked a button to exit the message box. Calling the function from a different thread may cause love to crash. Function Displays a simple message box with a single 'OK' button. Synopsis success

BezierCurve:render

BezierCurve:render Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get a list of coordinates to be used with love.graphics.line. This function samples the Bézier curve using recursive subdivision. You can control the recursion depth using the depth parameter. If you are just interested to know the position on the curve given a parameter, use BezierCurve:evaluate. Function Synopsis coordinates = BezierCurve:render(depth) Arguments number depth (5) Number of

BezierCurve:rotate

BezierCurve:rotate Available since LÖVE 0.9.0 This function is not supported in earlier versions. Rotate the Bézier curve by an angle. Function Synopsis BezierCurve:rotate(angle, ox, oy) Arguments number angle Rotation angle in radians. number ox (0) X coordinate of the rotation center. number oy (0) Y coordinate of the rotation center. Returns Nothing. See Also BezierCurve:translate BezierCurve:scale BezierCurve love.math

Source:setRelative

Source:setRelative Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets whether the Source's position, velocity, direction, and cone angles are relative to the listener, or absolute. By default, all sources are absolute and therefore relative to the origin of love's coordinate system [0, 0, 0]. Only absolute sources are affected by the position of the listener. Please note that positional audio only works for mono (i.e. non-stereo) sources. Function Synopsis

love.mouse.getRelativeMode

love.mouse.getRelativeMode Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets whether relative mode is enabled for the mouse. If relative mode is enabled, the cursor is hidden and doesn't move when the mouse does, but relative mouse motion events are still generated via love.mousemoved. This lets the mouse move in any direction indefinitely without the cursor getting stuck at the edges of the screen. The reported position of the mouse is not updated while

Source:getDistance

Source:getDistance 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 Source:getAttenuationDistances. Returns the reference and maximum distance of the source. There's a bug in 0.8.0 preventing this function from working Function Synopsis ref, max = Source:getDistance( ) Arguments None. Returns number ref The reference distance. number max The maximum distance. See Also Source

Thread:get

Thread:get Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0 It has been moved to the Channel api. Retrieves the value of a message and removes it from the thread's message box. Function Synopsis value = Thread:get( name ) Arguments string name The name of the message. Returns Variant value The contents of the message or nil when no message in message box. See Also Thread Thread:set

Fixture:setFriction

Fixture:setFriction Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the friction of the fixture. Friction determines how shapes react when they "slide" along other shapes. Low friction indicates a slippery surface, like ice, while high friction indicates a rough surface, like concrete. Range: 0.0 - 1.0. Function Synopsis Fixture:setFriction( friction ) Arguments number friction The fixture friction. Returns Nothing. See Also Fixture Fixture:getFric

love.filesystem.load

love.filesystem.load Loads a Lua file (but does not run it). Function Synopsis chunk, errormsg = love.filesystem.load( name ) Arguments string name The name (and path) of the file. Returns function chunk The loaded chunk. string errormsg (nil) The error message if file could not be opened. Example It is important to note that love.filesystem.load does not invoke the code, it just creates a function (a 'chunk') that will contain the contents of the file inside it. In order to execute the

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