PulleyJoint:getLength2

PulleyJoint:getLength2 Removed in LÖVE 0.8.0 This method is not supported in that and later versions. ".0" can not be assigned to a declared number type with value 0.8. Get the current length of the rope segment attached to the second body. Function Synopsis length = PulleyJoint:getLength2( ) Arguments None. Returns number length The length of the rope segment. See Also PulleyJoint

RandomGenerator:getSeed

RandomGenerator:getSeed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the seed of the random number generator object. The seed is split into two numbers due to Lua's use of doubles for all number values - doubles can't accurately represent integer values above 2^53, but the seed value is an integer number in the range of [0, 2^64 - 1]. Function Synopsis low, high = RandomGenerator:getSeed( ) Arguments None. Returns number low Integer number represen

love.image.isCompressed

love.image.isCompressed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Determines whether a file can be loaded as CompressedImageData. Function Synopsis compressed = love.image.isCompressed( filename ) Arguments string filename The filename of the potentially compressed image file. Returns boolean compressed Whether the file can be loaded as CompressedImageData or not. Function Synopsis compressed = love.image.isCompressed( fileData ) Arguments FileDat

love.sound.newDecoder

love.sound.newDecoder Attempts to find a decoder for the encoded sound data in the specified file. Function Synopsis decoder = love.sound.newDecoder( file, buffer ) Arguments File file The file with encoded sound data. number buffer (2048) The size of each decoded chunk, in bytes. Returns Decoder decoder A new Decoder object. Function Synopsis decoder = love.sound.newDecoder( filename, buffer ) Arguments string filename The filename of the file with encoded sound data. number buffer (2

ParticleSystem:moveTo

ParticleSystem:moveTo Available since LÖVE 0.9.1 This function is not supported in earlier versions. Moves the position of the emitter. This results in smoother particle spawning behaviour than if ParticleSystem:setPosition is used every frame. Function Synopsis ParticleSystem:moveTo( x, y ) Arguments number x Position along x-axis. number y Position along y-axis. Returns Nothing. See Also ParticleSystem

Video:rewind

Video:rewind Available since LÖVE 0.10.0 This function is not supported in earlier versions. Rewinds the Video to the beginning. Function Synopsis Video:rewind( ) Arguments None. Returns Nothing. See Also Video Video:play Video:seek Video:tell

love.graphics.setColor

love.graphics.setColor Sets the color used for drawing. Function Synopsis love.graphics.setColor( red, green, blue, alpha ) Arguments number red The amount of red. number green The amount of green. number blue The amount of blue. number alpha (255) The amount of alpha. The alpha value will be applied to all subsequent draw operations, even the drawing of an image. Returns Nothing. Function Available since LÖVE 0.7.0 This variant is not supported in earlier versions. Synopsis love.gr

love.window.getDimensions

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

love.window.toPixels

love.window.toPixels Available since LÖVE 0.9.2 This function is not supported in earlier versions. Converts a number from density-independent units to pixels. The pixel density inside the window might be greater (or smaller) than the "size" of the window. For example on a retina screen in Mac OS X with the highdpi window flag enabled, the window may take up the same physical size as an 800x600 window, but the area inside the window uses 1600x1200 pixels. love.window.toPixels(800) would re

Audio Formats

Audio Formats As of Love 0.9.1, the following audio formats are supported: Waveform Audio File Format (.wav) MPEG-1 or MPEG-2 Audio Layer III (.mp3) Ogg Vorbis (.ogg, .oga, .ogv) Tracker module formats (.699, .amf, .ams, .dbm, .dmf, .dsm, .far, .it, .j2b, .mdl, .med, .mod, .mt2, .mtm, .okt, .psm, .s3m, .stm, .ult, .umx, .xm) Other formats supported by libmodplug (.abc, .mid, .pat) See Also love.audio love.sound