Shape:setRestitution

Shape:setRestitution Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Sets the restitution of the shape. Restitution indicates the "bounciness" of the shape. High restitution can be used to model stuff like a rubber ball, while low restitution can be used for "dull" objects, like a bag of sand. Function Synopsis Shape:setRestitution( restitution ) Arguments number restitution The restitution of the shape. Returns Nothing. Notes A shape with a restitution

Contact:setRestitution

Contact:setRestitution Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the contact restitution. Function Synopsis Contact:setRestitution( restitution ) Arguments number restitution The contact restitution. Returns Nothing. See Also Contact

love.filesystem.getWorkingDirectory

love.filesystem.getWorkingDirectory Gets the current working directory. Function Synopsis cwd = love.filesystem.getWorkingDirectory( ) Arguments None. Returns string cwd The current working directory. See Also love.filesystem

love.mouse.hasCursor

love.mouse.hasCursor Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets whether cursor functionality is supported. If it isn't supported, calling love.mouse.newCursor and love.mouse.getSystemCursor will cause an error. Mobile devices do not support cursors. Function Synopsis hascursor = love.mouse.hasCursor( ) Arguments None. Returns boolean hascursor Whether the system has cursor functionality. See Also love.mouse

love.keyboard.isScancodeDown

love.keyboard.isScancodeDown Available since LÖVE 0.10.0 This function is not supported in earlier versions. Checks whether the specified Scancodes are pressed. Not to be confused with love.keypressed or love.keyreleased. Unlike regular KeyConstants, Scancodes are keyboard layout-independent. The scancode "w" is used if the key in the same place as the "w" key on an American keyboard is pressed, no matter what the key is labelled or what the user's operating system settings are. Function

SoundData:getSampleCount

SoundData:getSampleCount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns the number of samples per channel of the SoundData. Function Synopsis count = SoundData:getSampleCount( ) Arguments None. Returns number count Total number of samples. See Also SoundData

love.filesystem.setIdentity

love.filesystem.setIdentity Sets the write directory for your game. Note that you can only set the name of the folder to store your files in, not the location. Function Synopsis love.filesystem.setIdentity( name ) Arguments string name The new identity that will be used as write directory. Returns Nothing. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis love.filesystem.setIdentity( name, appendToPath ) Arguments string name The new ident

love.audio.setPosition

love.audio.setPosition Sets the position of the listener, which determines how sounds play. Function Synopsis love.audio.setPosition( x, y, z ) Arguments number x The x position of the listener. number y The y position of the listener. number z The z position of the listener. Returns Nothing. Remarks Setting a position only works for mono sources. WAV files are always loaded as stereo, OGG works fine. See Also love.audio Source:setPosition

love.physics.newCircleShape

love.physics.newCircleShape Script Example Missing love.physics.newCircleShape needs a script example, help out by writing one. Creates a new CircleShape. Function Available since LÖVE 0.8.0 These variants are not supported in earlier versions. Synopsis shape = love.physics.newCircleShape( radius ) Arguments number radius The radius of the circle. Returns CircleShape shape The new shape. Function Synopsis shape = love.physics.newCircleShape( x, y, radius ) Arguments number x The

love.window.getWidth

love.window.getWidth Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 Use love.graphics.getWidth or love.window.getMode instead. Gets the width of the window. Function Synopsis width = love.window.getWidth( ) Arguments None. Returns number width The width of the window. See Also love.window love.window.getHeight love.window.getDimensions love.window.setMode