love.filesystem.getDirectoryItems

love.filesystem.getDirectoryItems Available since LÖVE 0.9.0 It has been renamed from love.filesystem.enumerate. Returns a table with the names of files and subdirectories in the specified path. The table is not sorted in any way; the order is undefined. If the path passed to the function exists in the game and the save directory, it will list the files and directories from both places. Function Synopsis files = love.filesystem.getDirectoryItems( dir ) Arguments string dir The directory

enet.peer

enet.peer Description An ENet peer which data packets may be sent or received from. In most applications you'll manually keep track of connected peers. Functions Function Description peer:disconnect Requests a disconnection from the peer. peer:disconnect_now Force immediate disconnection from peer. peer:disconnect_later Request a disconnection from peer, but only after all queued outgoing packets are sent. peer:reset Forcefully disconnects peer. The peer is not notified of the

Source:setCone

Source:setCone Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the Source's directional volume cones. Together with Source:setDirection, the cone angles allow for the Source's volume to vary depending on its direction. Function Synopsis Source:setCone( innerAngle, outerAngle, outerVolume ) Arguments number innerAngle The inner angle from the Source's direction, in radians. The Source will play at normal volume if the listener is inside the cone defined

love.graphics.getCaption

love.graphics.getCaption Removed in LÖVE 0.9.0 Moved to the love.window module as love.window.getTitle. Gets the window caption. Function Synopsis caption = love.graphics.getCaption( ) Arguments None. Returns string caption The current window caption. See Also love.graphics love.graphics.setCaption

Text:getHeight

Text:getHeight Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the height of the text in pixels. Function Synopsis height = Text:getHeight( ) Arguments None. Returns number height The height of the text. If multiple sub-strings have been added with Text:add, the height of the last sub-string is returned. Function Gets the height of a specific sub-string that was previously added to the Text object. Synopsis height = Text:getHeight( index ) Argume

love.touchmoved

love.touchmoved Available since LÖVE 0.10.0 This function is not supported in earlier versions. Callback function triggered when a touch press moves inside the touch screen. Function Synopsis love.touchmoved( id, x, y, dx, dy, pressure ) Arguments light userdata id The identifier for the touch press. number x The x-axis position of the touch inside the window, in pixels. number y The y-axis position of the touch inside the window, in pixels. number dx The x-axis movement of the touch i

Object:typeOf

Object:typeOf Checks whether an object is of a certain type. If the object has the type with the specified name in its hierarchy, this function will return true. Function Synopsis b = Object:typeOf( name ) Arguments string name The name of the type to check for. Returns boolean b True if the object is of the specified type, false otherwise. Examples Checking the type of an object image = love.graphics.newImage("test.png") print(image:typeOf("Object")) -- outputs: true print(image:typeOf(

ParticleSystem:isPaused

ParticleSystem:isPaused Available since LÖVE 0.9.0 This function is not supported in earlier versions. Checks whether the particle system is paused. Function Synopsis paused = ParticleSystem:isPaused( ) Arguments None. Returns boolean paused True if system is paused, false otherwise. See Also ParticleSystem ParticleSystem:isActive ParticleSystem:isStopped

Fixture:setRestitution

Fixture:setRestitution Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the restitution of the fixture. Function Synopsis Fixture:setRestitution( restitution ) Arguments number restitution The fixture restitution. Returns Nothing. See Also Fixture Fixture:getRestitution

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