love.keyboard.getKeyFromScancode

love.keyboard.getKeyFromScancode Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the key corresponding to the given hardware scancode. Unlike key constants, Scancodes are keyboard layout-independent. For example the scancode "w" will be generated 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. Scancodes are useful for creating default con

DistanceJoint:setDamping

DistanceJoint:setDamping Removed in LÖVE 0.8.0 It has been replaced with DistanceJoint:setDampingRatio. Sets the damping ratio. Function Synopsis DistanceJoint:setDamping( ratio ) Arguments number ratio The damping ratio. Returns Nothing. See Also DistanceJoint

ChainShape:getNextVertex

ChainShape:getNextVertex Available since LÖVE 0.10.2 This function is not supported in earlier versions. Gets the vertex that establishes a connection to the next shape. Setting next and previous ChainShape vertices can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. Function Synopsis x, y = ChainShape:getNextVertex( ) Arguments None. Returns number x (nil) The x-component of the vertex, or nil if ChainShape:setNextVertex hasn't

love.math.triangulate

love.math.triangulate Available since LÖVE 0.9.0 This function is not supported in earlier versions. Decomposes a simple convex or concave polygon into triangles. Function Synopsis triangles = love.math.triangulate( polygon ) Arguments table polygon Polygon to triangulate. Must not intersect itself. Returns table triangles List of triangles the polygon is composed of, in the form of {{x1, y1, x2, y2, x3, y3}, {x1, y1, x2, y2, x3, y3}, ...}. Function Synopsis triangles = love.math.tr

enet.peer:round trip time

enet.peer:round trip time Returns or sets the current round trip time (i.e. ping). If value is nil the current value of the peer is returned. Otherwise the round trip time is set to the specified value and returned. ENet performs some filtering on the round trip times and it takes some time until the parameters are accurate. To speed it up, set the last round trip time to an accurate guess. Function Synopsis peer:round_trip_time() Arguments None. Returns number roundtriptime The peer's c

love.sound.newSoundData

love.sound.newSoundData Creates new SoundData from a filepath, File, or Decoder. It's also possible to create SoundData with a custom sample rate, channel and bit depth. The sound data will be decoded to the memory in a raw format. It is recommended to create only short sounds like effects, as a 3 minute song uses 30 MB of memory this way. Function Synopsis soundData = love.sound.newSoundData( filename ) Arguments string filename The file name of the file to load. Returns SoundData soundDa

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

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