RandomGenerator:getState

RandomGenerator:getState Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the current state of the random number generator. This returns an opaque implementation-dependent string which is only useful for later use with RandomGenerator:setState. This is different from RandomGenerator:getSeed in that getState gets the RandomGenerator's current state, whereas getSeed gets the previously set seed number. Function Synopsis state = RandomGenerator:getState( )

ParticleSystem:setTangentialAcceleration

ParticleSystem:setTangentialAcceleration Sets the tangential acceleration (acceleration perpendicular to the particle's direction). Function Synopsis ParticleSystem:setTangentialAcceleration( min, max ) Arguments number min The minimum acceleration. number max (min) The maximum acceleration. Returns Nothing. See Also ParticleSystem

love.timer.getTime

love.timer.getTime Returns the value of a timer with an unspecified starting time. This function should only be used to calculate differences between points in time, as the starting time of the timer is unknown. Function Synopsis time = love.timer.getTime( ) Arguments None. Returns number time The time in seconds. Examples Checking how long something takes local start = love.timer.getTime()   -- Concatenate "bar" 1000 times. local foo = "" for _ = 1, 1000 do foo = foo .. "bar" end   -- Re

FileData:getFilename

FileData:getFilename Available since LÖVE 0.7.0 This function is not supported in earlier versions. Gets the filename of the FileData. Function Synopsis name = FileData:getFilename( ) Arguments None. Returns string name The name of the file the FileData represents. See Also FileData

DistanceJoint:setLength

DistanceJoint:setLength Sets the equilibrium distance between the two Bodies. Function Synopsis DistanceJoint:setLength( l ) Arguments number l The length between the two Bodies. Returns Nothing. See Also DistanceJoint

love.mouse.setGrabbed

love.mouse.setGrabbed Available since LÖVE 0.9.0 It has been renamed from love.mouse.setGrab. Grabs the mouse and confines it to the window. Function Synopsis love.mouse.setGrabbed( grab ) Arguments boolean grab True to confine the mouse, false to let it leave the window. Returns Nothing. Examples Toggles whether the mouse is grabbed by pressing tab, with the help of love.mouse.isGrabbed. function love.keypressed(key) if key == "tab" then local state = not love.mouse.isGrabbe

Joystick:getGUID

Joystick:getGUID Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets a stable GUID unique to the type of the physical joystick which does not change over time. For example, all Sony Dualshock 3 controllers in OS X have the same GUID. The value is platform-dependent. Function Synopsis guid = Joystick:getGUID( ) Arguments None. Returns string guid The Joystick type's OS-dependent unique identifier. See Also Joystick Joystick:getID love.joystick.setGam

BezierCurve:setControlPoint

BezierCurve:setControlPoint Available since LÖVE 0.9.0 This function is not supported in earlier versions. Set coordinates of the i-th control point. Indices start with 1. Function Synopsis BezierCurve:setControlPoint(i, x, y) Arguments number i Index of the control point. number x Position of the control point along the x axis. number y Position of the control point along the y axis. Returns Nothing. See Also BezierCurve BezierCurve:getDegree BezierCurve:getControlPoint Bezie

love.window.setIcon

love.window.setIcon Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the window icon until the game is quit. Not all operating systems support very large icon images. Function Synopsis success = love.window.setIcon( imagedata ) Arguments ImageData imagedata The window icon image. Returns boolean success Whether the icon has been set successfully. See Also love.window love.window.getIcon

love.mouse.isGrabbed

love.mouse.isGrabbed Checks if the mouse is grabbed. Function Synopsis grabbed = love.mouse.isGrabbed( ) Arguments None. Returns boolean grabbed True if the cursor is grabbed, false if it is not. Examples Toggles whether the mouse is grabbed by pressing tab, using love.mouse.setGrabbed. function love.keypressed(key) if key == "tab" then local state = not love.mouse.isGrabbed() -- the opposite of whatever it currently is love.mouse.setGrabbed(state) --Use love.mouse.setGra