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

love.filesystem.getLastModified

love.filesystem.getLastModified Gets the last modification time of a file. Function Synopsis modtime, errormsg = love.filesystem.getLastModified( filename ) Arguments string filename The path and name to a file. Returns number modtime The last modification time in seconds since the unix epoch or nil on failure. string errormsg The error message on failure. Examples Getting the time of a file and printing it as a date. modtime, errormsg = love.filesystem.getLastModified("file.dat")   if

love.joystickhat

love.joystickhat Available since LÖVE 0.9.0 This callback is not supported in earlier versions. Called when a joystick hat direction changes. Function Synopsis love.joystickhat( joystick, hat, direction ) Arguments Joystick joystick The joystick object. number hat The hat number. JoystickHat direction The new hat direction. Returns Nothing. See Also love

love.filesystem.setSource

love.filesystem.setSource Sets the source of the game, where the code is present. This function can only be called once, and is normally automatically done by LÖVE. Function Synopsis love.filesystem.setSource( path ) Arguments string path Absolute path to the game's source folder. Returns Nothing. See Also love.filesystem

love.math.isConvex

love.math.isConvex Available since LÖVE 0.9.0 This function is not supported in earlier versions. Checks whether a polygon is convex. PolygonShapes in love.physics, some forms of Meshes, and polygons drawn with love.graphics.polygon must be simple convex polygons. Function Synopsis convex = love.math.isConvex( vertices ) Arguments table vertices The vertices of the polygon as a table in the form of {x1, y1, x2, y2, x3, y3, ...}. Returns boolean convex Whether the given polygon is conv

love.filesystem.write

love.filesystem.write Write data to a file in the save directory. If the file existed already, it will be completely replaced by the new contents. Function Synopsis success = love.filesystem.write( name, data, size ) Arguments string name The name (and path) of the file. string data The string data to write to the file. number size (all) How many bytes to write. Returns boolean success If the operation was successful. Function Synopsis success = love.filesystem.write( name, data, size

love.filesystem.unmount

love.filesystem.unmount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Unmounts a zip file or folder previously mounted for reading with love.filesystem.mount. Function Synopsis success = love.filesystem.unmount( archive ) Arguments string archive The folder or zip file in the game's save directory which is currently mounted. Returns boolean success True if the archive was successfully unmounted, false otherwise. Examples Mount a zip file and then unmo