Mesh:getVertices

Mesh:getVertices Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 Use Mesh:getVertex in a loop instead. Gets all the vertices in the Mesh. This method can be slow if the Mesh has a large number of vertices. Keep the original table used to create the Mesh around and update it when necessary instead of using this method frequently, if possible. Function Synopsis vertices = Mesh:getVertices( ) Arguments None. Returns table vertices The table filled with vertex information tables for e

love.update

love.update Callback function used to update the state of the game every frame. Function Synopsis love.update( dt ) Arguments number dt Time since the last update in seconds. Returns Nothing. Examples Run a function called think inside a table called npc once per second. dtotal = 0 -- this keeps track of how much time has passed function love.update(dt) dtotal = dtotal + dt -- we add the time passed since the last update, probably a very small number like 0.01 if dtotal >= 1

World:getContactCount

World:getContactCount Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the number of contacts in the world. Function Synopsis n = World:getContactCount( ) Arguments None. Returns number n The number of contacts in the world. See Also World

love.thread.getChannel

love.thread.getChannel Available since LÖVE 0.9.0 This function is not supported in earlier versions. Creates or retrieves a named thread channel. Function Synopsis channel = love.thread.getChannel( name ) Arguments string name The name of the channel you want to create or retrieve. Returns Channel channel The Channel object associated with the name. See Also love.thread Channel

Decoder:getBitDepth

Decoder:getBitDepth Available since LÖVE 0.9.0 It has been renamed from Decoder:getBits. Returns the number of bits per sample. Function Synopsis bitDepth = Decoder:getBitDepth( ) Arguments None. Returns number bitDepth Either 8, or 16. See Also Decoder

Body:setUserData

Body:setUserData Available since LÖVE 0.9.1 This method is not supported in earlier versions. Associates a Lua value with the Body. To delete the reference, explicitly pass nil. Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash. Function Synopsis Body:setUserData( value ) Arguments any value The Lua value to associate with the Body. Returns Nothing. See Also Body Body:getUserData

love.joystick.getBall

love.joystick.getBall Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Returns the change in ball position. Function Synopsis dx, dy = love.joystick.getBall( joystick, ball ) Arguments number joystick The joystick to be checked number ball The ball to be checked Returns number dx Change in x of the ball position. number dy Change in y of the ball position. See Also love.joystick

(Image):getFilter

(Image):getFilter Gets the filter mode for an image. Function Synopsis min, mag = Image:getFilter( ) Arguments None. Returns FilterMode min Filter mode used when minifying the image. FilterMode mag Filter mode used when magnifying the image. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis min, mag, anisotropy = Image:getFilter( ) Arguments None. Returns FilterMode min Filter mode used when minifying the image. FilterMode mag Filter mo

enet.peer:ping

enet.peer:ping Send a ping request to peer, updates round_trip_time. This is called automatically at regular intervals. Function Synopsis peer:ping() Arguments None. Returns Nothing. See Also lua-enet enet.peer enet.peer:round_trip_time

enet.peer:timeout

enet.peer:timeout Returns or sets the parameters when a timeout is detected. This is happens either after a fixed timeout or a variable timeout of time that takes the round trip time into account. The former is specified with the maximum parameter. Function Synopsis peer:timeout(limit, minimum, maximum) Arguments number limit A factor that is multiplied with a value that based on the average round trip time to compute the timeout limit. number minimum Timeout value, in milliseconds, that a