RopeJoint:getMaxLength

RopeJoint:getMaxLength Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the maximum length of a RopeJoint. Function Synopsis maxLength = RopeJoint:getLength( ) Arguments None. Returns number maxLength The maximum length of the RopeJoint. See Also RopeJoint

love.graphics.setDefaultFilter

love.graphics.setDefaultFilter Available since LÖVE 0.9.0 It has been renamed from love.graphics.setDefaultImageFilter. Sets the default scaling filters used with Images, Canvases, and Fonts. Function Synopsis love.graphics.setDefaultFilter( min, mag, anisotropy ) Arguments FilterMode min Filter mode used when scaling the image down. FilterMode mag Filter mode used when scaling the image up. number anisotropy (1) Maximum amount of Anisotropic Filtering used. Returns Nothing. Notes Th

(File):close

(File):close Closes a File. Function Synopsis success = File:close( ) Arguments None. Returns boolean success Whether closing was successful. See Also File

love.math.random

love.math.random Available since LÖVE 0.9.0 This function is not supported in earlier versions. Generates a pseudo-random number in a platform independent manner. Function Get uniformly distributed pseudo-random real number within [0, 1]. Synopsis number = love.math.random( ) Arguments None. Returns number number The pseudo-random number. Function Get a uniformly distributed pseudo-random integer within [1, max]. Synopsis number = love.math.random( max ) Arguments number max The max

Body:setSleepingAllowed

Body:setSleepingAllowed Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the sleeping behaviour of the body. Should sleeping be allowed, a body at rest will automatically sleep. A sleeping body is not simulated unless it collided with an awake body. Be wary that one can end up with a situation like a floating sleeping body if the floor was removed. Function Synopsis Body:setSleepingAllowed( allowed ) Arguments boolean allowed True if the body is allowed to

ParticleSystem:setImage

ParticleSystem:setImage Available since LÖVE 0.9.0 It has been renamed from ParticleSystem:setSprite. Removed in LÖVE 0.10.0 Use ParticleSystem:setTexture instead. Sets the image to be used for the particles. Function Synopsis ParticleSystem:setImage( image ) Arguments Image image An Image to use for the particles. Returns Nothing. See Also ParticleSystem

love.graphics.setWireframe

love.graphics.setWireframe Available since LÖVE 0.9.1 This function is not supported in earlier versions. Sets whether wireframe lines will be used when drawing. This function does nothing on mobile devices and other systems which use OpenGL ES 2. Wireframe mode should only be used for debugging. The lines drawn with it enabled do not behave like regular love.graphics lines: their widths don't scale with the coordinate transformations or with love.graphics.setLineWidth, and they don't use

Object:type

Object:type Gets the type of the object as a string. Function Synopsis type = Object:type() Arguments None. Returns string type The type as a string. Examples Printing the type of an object image = love.graphics.newImage("test.png") print(image:type()) -- outputs: Image source = love.audio.newSource("test.ogg") print(source:type()) -- outputs: Source See Also Object

enet.host create

enet.host create Returns a new host. All arguments are optional. A bind_address of nil makes a host that can not be connected to (typically a client). Otherwise the address can either be of the form <ipaddress>:<port>, <hostname>:<port>, or *:<port>. Example addresses include "127.0.0.1:8888", "localhost:2232", and "*:6767". Function Synopsis host = enet.host_create(bind_address, peer_count, channel_count, in_bandwidth, out_bandwidth) Arguments string bind_add

love.audio.pause

love.audio.pause Pauses currently played Sources. Function This function will pause all currently active Sources. Synopsis love.audio.pause( ) Arguments None. Returns Nothing. Function This function will only pause the specified Source. Synopsis love.audio.pause( source ) Arguments Source source The source on which to pause the playback Returns Nothing. See Also love.audio