Contact:getFriction

Contact:getFriction Get the friction between two shapes that are in contact. Function Synopsis friction = Contact:getFriction( ) Arguments None. Returns number friction The friction of the contact. See Also Contact

love.graphics.draw

love.graphics.draw Draws a Drawable object (an Image, Canvas, SpriteBatch, ParticleSystem, Mesh, or Video) on the screen with optional rotation, scaling and shearing. Objects are drawn relative to their local coordinate system. The origin is by default located at the top left corner of Image and Canvas. All scaling, shearing, and rotation arguments transform the object relative to that point. Also, the position of the origin can be specified on the screen coordinate system. It's possible to r

enet.peer:connect id

enet.peer:connect id Returns the field ENetPeer::connectID that is assigned for each connection. Function Synopsis peer:connect_id() Arguments None. Returns number id Unique ID that was assigned to the connection. See Also lua-enet enet.peer

ParticleSystem:getRotation

ParticleSystem:getRotation Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the rotation of the image upon particle creation (in radians). Function Synopsis min, max = ParticleSystem:getRotation( ) Arguments Nothing. Returns number min The minimum initial angle (radians). number max The maximum initial angle (radians). See Also ParticleSystem ParticleSystem:setRotation

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

Source:setDistance

Source:setDistance Available since LÖVE 0.8.0 This function is not supported in earlier versions. Removed in LÖVE 0.9.0 It has been renamed to Source:setAttenuationDistances. Sets the reference and maximum distance of the source. Function Synopsis Source:setDistance( ref, max ) Arguments number ref The new reference distance. number max The new maximum distance. Returns Nothing. See Also Source

love.window.isDisplaySleepEnabled

love.window.isDisplaySleepEnabled Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets whether the display is allowed to sleep while the program is running. Display sleep is disabled by default. Some types of input (e.g. joystick button presses) might not prevent the display from sleeping, if display sleep is allowed. Function Synopsis enabled = love.window.isDisplaySleepEnabled( ) Arguments None. Returns boolean enabled True if system display sleep is en

love.filesystem.lines

love.filesystem.lines Iterate over the lines in a file. Function Synopsis iterator = love.filesystem.lines( name ) Arguments string name The name (and path) of the file Returns function iterator A function that iterates over all the lines in the file Example local highscores = {} for line in love.filesystem.lines("highscores.lst") do table.insert(highscores, line) end See Also love.filesystem

ParticleSystem:setSpin

ParticleSystem:setSpin Sets the spin of the sprite. Function Synopsis ParticleSystem:setSpin( min, max ) Arguments number min The minimum spin (radians per second). number max (min) The maximum spin (radians per second). Returns Nothing. Function Removed in LÖVE 0.9.0 Use ParticleSystem:setSpinVariation instead. Synopsis ParticleSystem:setSpin( min, max, variation ) Arguments number min The minimum spin (radians per second). number max (min) The maximum spin (radians per second). nu

Mesh:setVertexMap

Mesh:setVertexMap Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the vertex map for the Mesh. The vertex map describes the order in which the vertices are used when the Mesh is drawn. The vertices, vertex map, and mesh draw mode work together to determine what exactly is displayed on the screen. The vertex map allows you to re-order or reuse vertices when drawing without changing the actual vertex parameters or duplicating vertices. It is especially use