love.directorydropped

love.directorydropped Available since LÖVE 0.10.0 This function is not supported in earlier versions. Callback function triggered when a directory is dragged and dropped onto the window. Function Synopsis love.directorydropped( path ) Arguments string path The full platform-dependent path to the directory. It can be used as an argument to love.filesystem.mount, in order to gain read access to the directory with love.filesystem. Returns Nothing. Notes Paths passed into this callback are

ParticleSystem:setInsertMode

ParticleSystem:setInsertMode Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the mode to use when the ParticleSystem adds new particles. Function Synopsis ParticleSystem:setInsertMode( mode ) Arguments ParticleInsertMode mode The mode to use when the ParticleSystem adds new particles. Returns Nothing. See Also ParticleSystem ParticleSystem:getInsertMode

Shape:getMask

Shape:getMask Removed in LÖVE 0.8.0 Use Fixture:getMask instead. Gets which categories this shape should NOT collide with. The number of masked categories is the number of return values. Function Synopsis ... = Shape:getMask( ) Arguments None. Returns number ... Numbers from 1-16 Examples With how many categories does this shape collide? print('shape collides with', select('#', shape:getMask()), 'categories') See Also Shape Shape:setMask

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

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

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

Body:getType

Body:getType Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the type of the body. Function Synopsis type = Body:getType( ) Arguments None. Returns BodyType type The body type. See Also Body Body:setType

Body:getAngularDamping

Body:getAngularDamping Gets the Angular damping of the Body The angular damping is the rate of decrease of the angular velocity over time: A spinning body with no damping and no external forces will continue spinning indefinitely. A spinning body with damping will gradually stop spinning. Damping is not the same as friction - they can be modelled together. However, only damping is provided by Box2D (and LOVE). Damping parameters should be between 0 and infinity, with 0 meaning no damping,

Body:setSleepingAllowed

Body:setSleepingAllowed Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the sleeping behaviour of the body. Should sleeping be allowed, a body at rest will automatically sleep. A sleeping body is not simulated unless it collided with an awake body. Be wary that one can end up with a situation like a floating sleeping body if the floor was removed. Function Synopsis Body:setSleepingAllowed( allowed ) Arguments boolean allowed True if the body is allowed to

love.event.pump

love.event.pump Pump events into the event queue. This is a low-level function, and is usually not called by the user, but by love.run. Note that this does need to be called for any OS to think you're still running, and if you want to handle OS-generated events at all (think callbacks). love.event.pump can only be called from the main thread, but afterwards, the rest of love.event can be used from any other thread. Function Synopsis love.event.pump( ) Arguments None. Returns Nothing. See Al