FrictionJoint:getMaxTorque

FrictionJoint:getMaxTorque Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the maximum friction torque in Newton-meters. Function Synopsis torque = FrictionJoint:getMaxTorque( ) Arguments None. Returns number torque Maximum torque in Newton-meters. See Also FrictionJoint FrictionJoint:setMaxTorque

love.keyboard.isDown

love.keyboard.isDown Checks whether a certain key is down. Not to be confused with love.keypressed or love.keyreleased. Function Synopsis down = love.keyboard.isDown( key ) Arguments KeyConstant key The key to check. Returns boolean down True if the key is down, false if not. Function Available since LÖVE 0.7.2 This variant is not supported in earlier versions. Synopsis anyDown = love.keyboard.isDown( key, ... ) Arguments KeyConstant key A key to check. KeyConstant ... Additional k

love.graphics.getCanvasFormats

love.graphics.getCanvasFormats Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the available Canvas formats, and whether each is supported. Function Synopsis formats = love.graphics.getCanvasFormats( ) Arguments None. Returns table formats A table containing CanvasFormats as keys, and a boolean indicating whether the format is supported as values. Not all systems support all formats. Examples Create a canvas with the format 'rgba16f' if it is support

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()

Fixture:getBoundingBox

Fixture:getBoundingBox Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the points of the fixture bounding box. In case the fixture has multiple children a 1-based index can be specified. For example, a fixture will have multiple children with a chain shape. Function Synopsis topLeftX, topLeftY, bottomRightX, bottomRightY = Fixture:getBoundingBox( index ) Arguments number index (1) A bounding box of the fixture. Returns number topLeftX The x position

love.window.isMaximized

love.window.isMaximized Available since LÖVE 0.10.2 This function is not supported in earlier versions. Gets whether the Window is currently maximized. The window can be maximized if it is not fullscreen and is resizable, and either the user has pressed the window's Maximize button or love.window.maximize has been called. Function Synopsis maximized = love.window.isMaximized( ) Arguments None. Returns boolean maximized True if the window is currently maximized in windowed mode, false ot

Shape:testPoint

Shape:testPoint This is particularly useful for mouse interaction with the shapes. By looping through all shapes and testing the mouse position with this function, we can find which shapes the mouse touches. There's a bug in 0.8.0 preventing this function from working. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis hit = Shape:testPoint( tx, ty, tr, x, y ) Arguments number tx Translates the shape along the x-axis. number ty Translates the

Quad:flip

Quad:flip Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Flips this quad horizontally, vertically, or both. Function Synopsis Quad:flip( x, y ) Arguments boolean x True to flip horizontally, false to leave as-is. boolean y True to flip vertically, false to leave as-is. Returns Nothing. See Also Quad

love.audio.getVolume

love.audio.getVolume Returns the master volume. Function Synopsis volume = love.audio.getVolume( ) Arguments None. Returns number volume The current master volume See Also love.audio

love.mouse.setVisible

love.mouse.setVisible Sets the current visibility of the cursor. Function Synopsis love.mouse.setVisible( visible ) Arguments boolean visible True to set the cursor to visible, false to hide the cursor. Returns Nothing. Examples Toggle mouse visibility by pressing tab. function love.keypressed(key) if key == "tab" then local state = not love.mouse.isVisible() -- the opposite of whatever it currently is love.mouse.setVisible(state) end end See Also love.mouse love.mo