ParticleSystem:setSpread

ParticleSystem:setSpread Sets the amount of spread for the system. Function Synopsis ParticleSystem:setSpread( spread ) Arguments number spread The amount of spread (radians). Returns Nothing. See Also ParticleSystem

Body:isFixedRotation

Body:isFixedRotation Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns whether the body rotation is locked. Function Synopsis fixed = Body:isFixedRotation( ) Arguments None. Returns boolean fixed True if the body's rotation is locked or false if not. See Also Body

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

love.lowmemory

love.lowmemory Available since LÖVE 0.10.0 This function is not supported in earlier versions. Callback function triggered when the system is running out of memory on mobile devices. Mobile operating systems may forcefully kill the game if it uses too much memory, so any non-critical resource should be removed if possible (by setting all variables referencing the resources to nil, and calling collectgarbage()), when this event is triggered. Sounds and images in particular tend to use the m

love.mouse.getY

love.mouse.getY Returns the current y-position of the mouse. Function Synopsis y = love.mouse.getY( ) Arguments None. Returns number y The position of the mouse along the y-axis. Examples Draw a horizontal line at the mouse's y-position. function love.draw() local y = love.mouse.getY() love.graphics.line(0,y, love.graphics.getWidth(),y) end See Also love.mouse love.mouse.getX love.mouse.getPosition

enet.peer:round trip time

enet.peer:round trip time Returns or sets the current round trip time (i.e. ping). If value is nil the current value of the peer is returned. Otherwise the round trip time is set to the specified value and returned. ENet performs some filtering on the round trip times and it takes some time until the parameters are accurate. To speed it up, set the last round trip time to an accurate guess. Function Synopsis peer:round_trip_time() Arguments None. Returns number roundtriptime The peer's c

love.font.newGlyphData

love.font.newGlyphData Available since LÖVE 0.7.0 This function is not supported in earlier versions. Creates a new GlyphData. Function Synopsis glyphData = love.font.newGlyphData( rasterizer, glyph ) Arguments Rasterizer rasterizer The Rasterizer containing the font. number glyph The character code of the glyph. Returns GlyphData glyphData The GlyphData. See Also love.font GlyphData

MotorJoint:getAngularOffset

MotorJoint:getAngularOffset Available since LÖVE 0.9.0 This method is not supported in earlier versions. Gets the target angular offset between the two Bodies the Joint is attached to. Function Synopsis angleoffset = MotorJoint:getAngularOffset( ) Arguments None. Returns number angleoffset The target angular offset in radians: the second body's angle minus the first body's angle. See Also MotorJoint MotorJoint:setAngularOffset

ParticleSystem:getParticleLifetime

ParticleSystem:getParticleLifetime Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the lifetime of the particles. Function Synopsis min, max = ParticleSystem:getParticleLifetime( ) Arguments Nothing. Returns number min The minimum life of the particles (in seconds). number max The maximum life of the particles (in seconds). See Also ParticleSystem ParticleSystem:setParticleLifetime

ParticleSystem:getDirection

ParticleSystem:getDirection Gets the direction of the particle emitter (in radians). Function Synopsis direction = ParticleSystem:getDirection( ) Arguments None. Returns number direction The direction of the emitter (radians). See Also ParticleSystem