MouseJoint:setMaxForce

MouseJoint:setMaxForce Sets the highest allowed force. Function Synopsis MouseJoint:setMaxForce( f ) Arguments number f The max allowed force. Returns Nothing. See Also MouseJoint

Joint:getBodies

Joint:getBodies Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the bodies that the Joint is attached to. Function Synopsis bodyA, bodyB = Joint:getBodies( ) Arguments None. Returns Body bodyA (nil) The first Body. Body bodyB (nil) The second Body. See Also Joint Body

MouseJoint:setDampingRatio

MouseJoint:setDampingRatio Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets a new damping ratio. Function Synopsis MouseJoint:setDampingRatio( ratio ) Arguments number ratio The new damping ratio. Returns Nothing. See Also MouseJoint MouseJoint:getDampingRatio

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

Shader:send

Shader:send Available since LÖVE 0.9.0 It has been renamed from PixelEffect:send. Sends one or more values to a special (uniform) variable inside the shader. Uniform variables have to be marked using the uniform or extern keyword, e.g. uniform float time; // "float" is the typical number type used in GLSL shaders. uniform float vars[2]; uniform vec2 light_pos; uniform vec4 colors[4]; The corresponding send calls would be shader:send("time", t) shader:send("vars",a,b) shader:send("light_p

ParticleSystem:setLifetime

ParticleSystem:setLifetime Removed in LÖVE 0.9.0 It has been renamed to ParticleSystem:setEmitterLifetime. Sets how long the particle system should emit particles (if -1 then it emits particles forever). Function Synopsis ParticleSystem:setLifetime( life ) Arguments number life The lifetime of the emitter (in seconds). Returns Nothing. See Also ParticleSystem

love.window.getDesktopDimensions

love.window.getDesktopDimensions Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the width and height of the desktop. Function Synopsis width, height = love.window.getDesktopDimensions( display ) Arguments number display (1) The index of the display, if multiple monitors are available. Returns number width The width of the desktop. number height The height of the desktop. Examples Show the resolution of the monitor the window is currently in funct

ParticleSystem:getImage

ParticleSystem:getImage Available since LÖVE 0.9.0 This function is not supported in earlier versions. Removed in LÖVE 0.10.0 Use ParticleSystem:getTexture instead. Gets the image used for the particles. Function Synopsis image = ParticleSystem:getImage( ) Arguments Nothing. Returns Image image An Image to use for the particles. See Also ParticleSystem ParticleSystem:setImage

ParticleSystem:setColor

ParticleSystem:setColor Removed in LÖVE 0.8.0 It has been replaced with ParticleSystem:setColors. Sets the color of the image. Function Synopsis ParticleSystem:setColor( r1, g1, b1, a1, r2, g2, b2, a2 ) Arguments number r1 Start color, red component (0-255). number g1 Start color, green component (0-255). number b1 Start color, blue component (0-255). number a1 Start color, alpha component (0-255). number r2 (r1) End color, red component (0-255). number g2 (g1) End color, green compo

love.graphics.newVideo

love.graphics.newVideo Available since LÖVE 0.10.0 This function is not supported in earlier versions. Creates a new drawable Video. Currently only Ogg Theora video files are supported. This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! Function Synopsis video = love.graphics.newVideo( filename, loadaudio ) Arguments string filename The file path