Canvas:renderTo

Canvas:renderTo Available since LÖVE 0.8.0 It has been renamed from Framebuffer:renderTo. Render to the Canvas using a function. This is a shortcut to love.graphics.setCanvas: canvas:renderTo( func ) is the same as love.graphics.setCanvas( canvas ) func() love.graphics.setCanvas() Function Synopsis Canvas:renderTo( func ) Arguments function func A function performing drawing operations. Returns Nothing. Examples Using an anonymous function for drawing to a Canvas This example randoml

love.filesystem.getRealDirectory

love.filesystem.getRealDirectory Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the platform-specific absolute path of the directory containing a filepath. This can be used to determine whether a file is inside the save directory or the game's source .love. Function Synopsis realdir = love.filesystem.getRealDirectory( filepath ) Arguments string filepath The filepath to get the directory of. Returns string realdir The platform-specific full path of

Video:getDimensions

Video:getDimensions Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the width and height of the Video in pixels. Function Synopsis width, height = Video:getDimensions( ) Arguments None. Returns number width The width of the Video. number height The height of the Video. See Also Video Video:getWidth Video:getHeight

love.focus

love.focus Available since LÖVE 0.7.0 This callback is not supported in earlier versions. Callback function triggered when window receives or loses focus. Function Synopsis love.focus( focus ) Arguments boolean focus True if the window gains focus, false if it loses focus. Returns Nothing. Example function love.load() text = "FOCUSED" end   function love.draw() love.graphics.print(text,0,0) end   function love.focus(f) if f then print("Window is focused.") text = "FOCUSED

love.audio.getDopplerScale

love.audio.getDopplerScale Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the current global scale factor for velocity-based doppler effects. Function Synopsis scale = love.audio.getDopplerScale( ) Arguments None. Returns number scale The current doppler scale factor. See Also love.audio love.audio.setDopplerScale

ParticleSystem:setGravity

ParticleSystem:setGravity Removed in LÖVE 0.9.0 It has been replaced by ParticleSystem:setLinearAcceleration. Sets the gravity affecting the particles (acceleration along the y-axis). Every particle created will have a gravity between min and max. Function Synopsis ParticleSystem:setGravity( min, max ) Arguments number min The minimum gravity. number max (min) The maximum gravity. Returns Nothing. See Also ParticleSystem

enet.host:peer count

enet.host:peer count Returns the number of peers that are allocated for the given host. This represents the maximum number of possible connections. Function Synopsis host:peer_count() Arguments None. Returns number limit The maximum number of peers allowed. See Also lua-enet enet.host enet.peer

Text:getFont

Text:getFont Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the Font used with the Text object. Function Synopsis font = Text:getFont( ) Arguments None. Returns Font font The font used with this Text object. See Also Text Text:setFont

love.gamepadpressed

love.gamepadpressed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when a Joystick's virtual gamepad button is pressed. Function Synopsis love.gamepadpressed( joystick, button ) Arguments Joystick joystick The joystick object. GamepadButton button The virtual gamepad button. Returns Nothing. See Also love love.gamepadreleased Joystick:isGamepad

love.filesystem.exists

love.filesystem.exists Check whether a file or directory exists. Function Synopsis exists = love.filesystem.exists( filename ) Arguments string filename The path to a potential file or directory. Returns boolean exists True if there is a file or directory with the specified name. False otherwise. See Also love.filesystem