love.audio.getNumSources

love.audio.getNumSources Removed in LÖVE 0.9.0 It has been renamed to love.audio.getSourceCount. Gets the current number of simultaneously playing sources. Function Synopsis numSources = love.audio.getNumSources( ) Arguments None. Returns number numSources The current number of simultaneously playing sources. See Also love.audio

love.threaderror

love.threaderror Available since LÖVE 0.9.0 This callback is not supported in earlier versions. Callback function triggered when a Thread encounters an error. Function Synopsis love.threaderror( thread, errorstr ) Arguments Thread thread The thread which produced the error. string errorstr The error message. Returns Nothing. Example function love.load() mythread = love.thread.newThread("thread.lua") mythread:start() end   function love.threaderror(thread, errorstr) print("Thread

enet.peer:ping interval

enet.peer:ping interval Specifies the interval in milliseconds that pings are sent to the other end of the connection (defaults to 500). Function Synopsis peer:ping_interval(interval) Arguments number interval Time in milliseconds to wait before automatically calling peer:ping(). Returns Nothing. See Also lua-enet enet.peer enet.peer:ping

Shape:setMask

Shape:setMask Removed in LÖVE 0.8.0 Use Fixture:setMask instead. Sets which categories this shape should NOT collide with. With this function, you can exclude certain shape categories from collisions with this shape. The categories passed as parameters will be excluded from collisions - all others included. Function Synopsis Shape:setMask( ... ) Arguments number ... Numbers from 1-16. Returns Nothing. Examples Only collide with category 6 shape:setMask(1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 1

PolygonShape:validate

PolygonShape:validate Available since LÖVE 0.9.0 This function is not supported in earlier versions. Validates whether the PolygonShape is convex. Concave PolygonShapes cannot be used in love.physics. Function Synopsis convex = PolygonShape:validate() Arguments None. Returns boolean convex Whether the PolygonShape is convex. See Also PolygonShape

love.system.getClipboardText

love.system.getClipboardText Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets text from the clipboard. Function Synopsis text = love.system.getClipboardText( ) Arguments None. Returns string text The text currently held in the system's clipboard. See Also love.system love.system.setClipboardText

love.gamepadaxis

love.gamepadaxis Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when a Joystick's virtual gamepad axis is moved. Function Synopsis love.gamepadaxis( joystick, axis, value ) Arguments Joystick joystick The joystick object. GamepadAxis axis The virtual gamepad axis. number value The new axis value. Returns Nothing. See Also love Joystick:isGamepad Joystick:getGamepadAxis

World:isAllowSleep

World:isAllowSleep Removed in LÖVE 0.8.0 This method is not supported in that and later versions. Get the sleep behaviour of the world. A sleeping body is much more efficient to simulate than when awake. If sleeping is allowed, any body that has come to rest will sleep. Function Synopsis permission = World:isAllowSleep( ) Arguments None. Returns boolean permission Permission for any body to sleep. See Also World

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

Body:applyImpulse

Body:applyImpulse Removed in LÖVE 0.8.0 It has been renamed to Body:applyLinearImpulse. Applies an impulse to a body. This makes a single, instantaneous addition to the body momentum. An impulse pushes a body in a direction. A body with with a larger mass will react less. The reaction does not depend on the timestep, and is equivalent to applying a force continuously for 1 second. Impulses are best used to give a single push to a body. For a continuous push to a body it is better to use Bo