Body:applyForce

Body:applyForce Apply force to a Body. A force pushes a body in a direction. A body with with a larger mass will react less. The reaction also depends on how long a force is applied: since the force acts continuously over the entire timestep, a short timestep will only push the body for a short time. Thus forces are best used for many timesteps to give a continuous push to a body (like gravity). For a single push that is independent of timestep, it is better to use Body:applyLinearImpulse. I

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

Joint:getReactionForce

Joint:getReactionForce Returns the reaction force in newtons on the second body Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis x, y = Joint:getReactionForce( invdt ) Arguments number x How long the force applies. Usually the inverse time step or 1/dt. Returns number x The x-component of the force. number y The y-component of the force. Function Removed in LÖVE 0.8.0 This variant is not supported in that and later versions. Synopsi

love.filesystem.getSaveDirectory

love.filesystem.getSaveDirectory Gets the full path to the designated save directory. This can be useful if you want to use the standard io library (or something else) to read or write in the save directory. Function Synopsis dir = love.filesystem.getSaveDirectory( ) Arguments None. Returns string dir The absolute path to the save directory. See Also love.filesystem

love.releaseerrhand

love.releaseerrhand Removed in LÖVE 0.9.0 This callback is not supported in that and later versions. Function Synopsis love.releaseerrhand( msg ) Arguments string msg The error message. Returns Nothing. Examples The default function used if you don't supply your own. function love.releaseerrhand(msg) print("An error has occured, the game has been stopped.")   if not love.graphics or not love.event or not love.graphics.isCreated() then return end   love.graphics.setCanvas() love.g

love.physics.getMeter

love.physics.getMeter Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns the meter scale factor. All coordinates in the physics module are divided by this number, creating a convenient way to draw the objects directly to the screen without the need for graphics transformations. It is recommended to create shapes no larger than 10 times the scale. This is important because Box2D is tuned to work well with shape sizes from 0.1 to 10 meters. Function Syno

Source:setPitch

Source:setPitch Sets the pitch of the Source. Function Synopsis Source:setPitch( pitch ) Arguments number pitch Calculated with regard to 1 being the base pitch. Each reduction by 50 percent equals a pitch shift of -12 semitones (one octave reduction). Each doubling equals a pitch shift of 12 semitones (one octave increase). Zero is not a legal value. Returns Nothing. Examples function love.load() sound = love.audio.newSource("sound.wav")   -- Note that this code, as-is, will set t

SoundData:getBits

SoundData:getBits Removed in LÖVE 0.9.0 It has been renamed to SoundData:getBitDepth. Returns the number of bits per sample. Function Synopsis bits = SoundData:getBits( ) Arguments None. Returns number bits Either 8, or 16. See Also SoundData

SpriteBatch:getColor

SpriteBatch:getColor Available since LÖVE 0.9.0 This method is not supported in earlier versions. Gets the color that will be used for the next add and set operations. If no color has been set with SpriteBatch:setColor or the current SpriteBatch color has been cleared, this method will return nil. Function Synopsis r, g, b, a = SpriteBatch:getColor( ) Arguments None. Returns number r The red component (0-255). number g The green component (0-255). number b The blue component (0-255).

ParticleSystem:setRadialAcceleration

ParticleSystem:setRadialAcceleration Set the radial acceleration (away from the emitter). Function Synopsis ParticleSystem:setRadialAcceleration( min, max ) Arguments number min The minimum acceleration. number max (min) The maximum acceleration. Returns Nothing. See Also ParticleSystem ParticleSystem:getRadialAcceleration