SoundData:getDuration

SoundData:getDuration Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the duration of the sound data. Function Synopsis duration = SoundData:getDuration( ) Arguments None. Returns number duration The duration of the sound data in seconds. See Also SoundData

Shape:testSegment

Shape:testSegment Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Checks whether a line segment intersects a shape. This function will either return the "time" of impact and the surface normal at the point of collision, or nil if the line does not intersect the shape. The "time" is a value between 0.0 and 1.0 and can be used to calculate where the collision occured. Function Synopsis t, xn, yn = Shape:testSegment( x1, y1, x2, y2 ) Arguments number x1 The x

Contact:isEnabled

Contact:isEnabled Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns whether the contact is enabled. The collision will be ignored if a contact gets disabled in the post solve callback. Function Synopsis enabled = Contact:isEnabled( ) Arguments None. Returns boolean enabled True if enabled, false otherwise. See Also Contact Contact:setEnabled

ParticleSystem:getInsertMode

ParticleSystem:getInsertMode Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the mode used when the ParticleSystem adds new particles. Function Synopsis mode = ParticleSystem:getInsertMode( ) Arguments None. Returns ParticleInsertMode mode The mode used when the ParticleSystem adds new particles. See Also ParticleSystem ParticleSystem:setInsertMode

love.touch.getPosition

love.touch.getPosition Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the current position of the specified touch-press, in pixels. Function Synopsis x, y = love.touch.getPosition( id ) Arguments light userdata id The identifier of the touch-press. Use love.touch.getTouches, love.touchpressed, or love.touchmoved to obtain touch id values. Returns number x The position along the x-axis of the touch-press inside the window, in pixels. number y The p

love.filesystem.getUserDirectory

love.filesystem.getUserDirectory Returns the path of the user's directory Function Synopsis path = love.filesystem.getUserDirectory( ) Arguments None. Returns string path The path of the user's directory See Also love.filesystem

love.graphics.setPointStyle

love.graphics.setPointStyle Removed in LÖVE 0.10.0 This function is not supported in that and later versions. Sets the point style. Smooth points are notoriously buggy on a lot of graphics drivers. Use "rough" point style for increased consistency between different drivers. Function Synopsis love.graphics.setPointStyle( style ) Arguments PointStyle style The new point style. Returns Nothing. Examples Toggle between point styles with the help of love.graphics.getPointStyle. if love.g

PrismaticJoint:getMaxMotorForce

PrismaticJoint:getMaxMotorForce Gets the maximum motor force. Function Synopsis f = PrismaticJoint:getMaxMotorForce( ) Arguments None. Returns number f The maximum motor force, usually in N. See Also PrismaticJoint

Body:getX

Body:getX Get the x position of the body in world coordinates. Function Synopsis x = Body:getX( ) Arguments None. Returns number x The x position in world coordinates. See Also Body

ParticleSystem:getCount

ParticleSystem:getCount Available since LÖVE 0.9.0 It has been renamed from ParticleSystem:count. Gets the number of particles that are currently in the system. Function Synopsis count = ParticleSystem:getCount( ) Arguments None. Returns number count The current number of live particles. See Also ParticleSystem ParticleSystem:getBufferSize