Body:setInertia

Body:setInertia Set the inertia of a body. This value can also be set by the fourth argument of Body:setMass. Function Synopsis Body:setInertia( inertia ) Arguments number inertia The new moment of inertia, in kilograms * pixel squared. Returns Nothing. See Also Body

Rasterizer:getAscent

Rasterizer:getAscent Available since LÖVE 0.7.0 This function is not supported in earlier versions. TODO See Also Rasterizer

love.graphics.circle

love.graphics.circle Draws a circle. Function Synopsis love.graphics.circle( mode, x, y, radius ) Arguments DrawMode mode How to draw the circle. number x The position of the center along x-axis. number y The position of the center along y-axis. number radius The radius of the circle. Returns Nothing. Function Synopsis love.graphics.circle( mode, x, y, radius, segments ) Arguments DrawMode mode How to draw the circle. number x The position of the center along x-axis. number y The pos

love.physics.newBody

love.physics.newBody Creates a new body. There are three types of bodies. Static bodies do not move, have a infinite mass, and can be used for level boundaries. Dynamic bodies are the main actors in the simulation, they collide with everything. Kinematic bodies do not react to forces and only collide with dynamic bodies. The mass of the body gets calculated when a Fixture is attached or removed, but can be changed at any time with Body:setMass or Body:resetMassData. Function Availabl

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

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