Fixture:setUserData

Fixture:setUserData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Associates a Lua value with the fixture. To delete the reference, explicitly pass nil. Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash. Function Synopsis Fixture:setUserData( value ) Arguments any value The Lua value to associate with the fixture. Returns Nothing. See Also Fixture Fixture:getUserData

love.filesystem.getSource

love.filesystem.getSource Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns the full path to the the .love file or directory. If the game is fused to the LÖVE executable, then the executable is returned. Function Synopsis path = love.filesystem.getSource( ) Arguments None. Returns string path The full platform-dependent path of the .love file or directory. See Also love.filesystem love.filesystem.isFused love.filesystem.getSourceBaseDirectory

love.filesystem.isSymlink

love.filesystem.isSymlink Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets whether a filepath is actually a symbolic link. If symbolic links are not enabled (via love.filesystem.setSymlinksEnabled), this function will always return false. Function Synopsis symlink = love.filesystem.isSymlink( path ) Arguments string path The file or directory path to check. Returns boolean symlink True if the path is a symbolic link, false otherwise. See Also love

ParticleSystem:getSizeVariation

ParticleSystem:getSizeVariation Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the amount of size variation (0 meaning no variation and 1 meaning full variation between start and end). Function Synopsis variation = ParticleSystem:getSizeVariation( ) Arguments Nothing. Returns number variation The amount of variation (0 meaning no variation and 1 meaning full variation between start and end). See Also ParticleSystem ParticleSystem:setSizeVariation

ParticleSystem:getBufferSize

ParticleSystem:getBufferSize Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the maximum number of particles the ParticleSystem can have at once. Function Synopsis size = ParticleSystem:getBufferSize( ) Arguments None. Returns number size The maximum number of particles. See Also ParticleSystem ParticleSystem:setBufferSize ParticleSystem:getCount

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

Source:getDuration

Source:getDuration Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the duration of the Source. For streaming Sources it may not always be sample-accurate, and may return -1 if the duration cannot be determined at all. Function Synopsis duration = Source:getDuration( unit ) Arguments TimeUnit unit ("seconds") The time unit for the return value. Returns number duration The duration of the Source, or -1 if it cannot be determined. See Also Source

Video:getWidth

Video:getWidth Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the width of the Video in pixels. Function Synopsis width = Video:getWidth( ) Arguments None. Returns number width The width of the Video. See Also Video Video:getHeight Video:getDimensions

SpriteBatch:getTexture

SpriteBatch:getTexture Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the texture (Image or Canvas) used by the SpriteBatch. Function Synopsis texture = SpriteBatch:getTexture( ) Arguments None. Returns Texture texture The Image or Canvas used by the SpriteBatch. See Also SpriteBatch SpriteBatch:setTexture

Joystick:getButtonCount

Joystick:getButtonCount Available since LÖVE 0.9.0 It has been moved from love.joystick.getNumButtons. Gets the number of buttons on the joystick. Function Synopsis buttons = Joystick:getButtonCount( ) Arguments None. Returns number buttons The number of buttons available. See Also Joystick Joystick:isDown