ParticleSystem:getBufferSize

ParticleSystem:getBufferSize Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the maximum number of particles the ParticleSystem can have at once. Function Synopsis size = ParticleSystem:getBufferSize( ) Arguments None. Returns number size The maximum number of particles. See Also ParticleSystem ParticleSystem:setBufferSize ParticleSystem:getCount

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

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

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.physics.newFrictionJoint

love.physics.newFrictionJoint Available since LÖVE 0.8.0 This function is not supported in earlier versions. Create a friction joint between two bodies. A FrictionJoint applies friction to a body. Function Synopsis joint = love.physics.newFrictionJoint( body1, body2, x, y, collideConnected ) Arguments Body body1 The first body to attach to the joint. Body body2 The second body to attach to the joint. number x The x position of the anchor point. number y The y position of the anchor poi

love.audio.getVelocity

love.audio.getVelocity Returns the velocity of the listener. Function Synopsis x, y, z = love.audio.getVelocity( ) Arguments None. Returns number x The X velocity of the listener. number y The Y velocity of the listener. number z The Z velocity of the listener. See Also love.audio

Source:setVolume

Source:setVolume Sets the current volume of the Source. Function Synopsis Source:setVolume( volume ) Arguments number volume The volume for a Source, where 1.0 is normal volume. Volume cannot be raised above 1.0. Returns Nothing. Examples Make a sound quieter or completely silent. function love.load() sound = love.audio.newSource("sound.wav")   -- Note that this code, as-is, will set the volume to 0.0, as per the last line, and that's how sound:play() will play it back. sound:

love.image.newImageData

love.image.newImageData Creates a new ImageData object. This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! Function Synopsis imageData = love.image.newImageData( width, height ) Arguments number width The width of the ImageData. number height The height of the ImageData. Returns ImageData imageData The new blank ImageData object. Each pixel's col