Fixture:getGroupIndex

Fixture:getGroupIndex Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the group the fixture belongs to. Fixtures with the same group will always collide if the group is positive or never collide if it's negative. The group zero means no group. The groups range from -32768 to 32767. Function Synopsis group = Fixture:getGroupIndex( ) Arguments None. Returns number group The group of the fixture. See Also Fixture Fixture:setGroupIndex

ChainShape:getChildEdge

ChainShape:getChildEdge Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns a child of the shape as an EdgeShape. Function Synopsis shape = ChainShape:getChildEdge( index ) Arguments number index The index of the child. Returns EdgeShape shape The child as an EdgeShape. See Also ChainShape

love.audio.pause

love.audio.pause Pauses currently played Sources. Function This function will pause all currently active Sources. Synopsis love.audio.pause( ) Arguments None. Returns Nothing. Function This function will only pause the specified Source. Synopsis love.audio.pause( source ) Arguments Source source The source on which to pause the playback Returns Nothing. See Also love.audio

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

love.window.isDisplaySleepEnabled

love.window.isDisplaySleepEnabled Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets 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 enabled = love.window.isDisplaySleepEnabled( ) Arguments None. Returns boolean enabled True if system display sleep is en

ParticleSystem:getColors

ParticleSystem:getColors Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the series of colors applied to the particle sprite. Function Synopsis r1, g1, b1, a1, r2, g2, b2, a2, ..., r8, g8, b8, a8 = ParticleSystem:getColors( ) Arguments Nothing. Returns number r1 First color, red component (0-255). number g1 First color, green component (0-255). number b1 First color, blue component (0-255). number a1 First color, alpha component (0-255). number r2

ImageData:getDimensions

ImageData:getDimensions Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the width and height of the ImageData in pixels. Function Synopsis width, height = ImageData:getDimensions( ) Arguments None. Returns number width The width of the ImageData in pixels. number height The height of the ImageData in pixels. See Also ImageData

Mesh:setDrawMode

Mesh:setDrawMode Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the mode used when drawing the Mesh. Function Synopsis Mesh:setDrawMode( mode ) Arguments MeshDrawMode mode The mode to use when drawing the Mesh. Returns Nothing. See Also Mesh Mesh:getDrawMode

Font:getLineHeight

Font:getLineHeight Gets the line height. This will be the value previously set by Font:setLineHeight, or 1.0 by default. Function Synopsis height = Font:getLineHeight( ) Arguments None. Returns number height The current line height. See Also Font Font:setLineHeight

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