PolygonShape:validate

PolygonShape:validate Available since LÖVE 0.9.0 This function is not supported in earlier versions. Validates whether the PolygonShape is convex. Concave PolygonShapes cannot be used in love.physics. Function Synopsis convex = PolygonShape:validate() Arguments None. Returns boolean convex Whether the PolygonShape is convex. See Also PolygonShape

love.thread.newChannel

love.thread.newChannel Available since LÖVE 0.9.0 This function is not supported in earlier versions. Create a new unnamed thread channel. One use for them is to pass new unnamed channels to other threads via Channel:push on a named channel. Function Synopsis channel = love.thread.newChannel( ) Arguments None. Returns Channel channel The new Channel object. See Also love.thread Channel

Fixture:setFilterData

Fixture:setFilterData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the filter data of the fixture. Groups, categories, and mask can be used to define the collision behaviour of the fixture. If two fixtures are in the same group they either always collide if the group is positive, or never collide if it's negative. If the group is zero or they do not match, then the contact filter checks if the fixtures select a category of the other fixture with their

Body:applyAngularImpulse

Body:applyAngularImpulse Available since LÖVE 0.8.0 This method is not supported in earlier versions. Applies an angular impulse to a body. This makes a single, instantaneous addition to the body momentum. A body with with a larger mass will react less. The reaction does not depend on the timestep, and is equivalent to applying a force continuously for 1 second. Impulses are best used to give a single push to a body. For a continuous push to a body it is better to use Body:applyForce. Fun

love.filesystem.enumerate

love.filesystem.enumerate Removed in LÖVE 0.9.0 It has been renamed to love.filesystem.getDirectoryItems. Returns a table with the names of files and subdirectories in the specified path. The table is not sorted in any way; the order is undefined. If the path passed to the function exists in the game and the save directory, it will list the files and directories from both places. Function Synopsis files = love.filesystem.enumerate( dir ) Arguments string dir The directory. Returns tab

love.graphics.newImage

love.graphics.newImage Creates a new Image from a filepath, FileData, an ImageData, or a CompressedImageData, and optionally generates or specifies mipmaps for the image. This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! Function Synopsis image = love.graphics.newImage( filename ) Arguments string filename The filepath to the image file. Returns I

love.graphics.newParticleSystem

love.graphics.newParticleSystem Creates a new ParticleSystem. This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! Function Synopsis system = love.graphics.newParticleSystem( image, buffer ) Arguments Image image The image to use. number buffer The max number of particles at the same time. Returns ParticleSystem system A new ParticleSystem. Funct

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

love.graphics.checkMode

love.graphics.checkMode Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Checks if a display mode is supported. Function Synopsis supported = love.graphics.checkMode( width, height, fullscreen ) Arguments number width The display width. number height The display height. boolean fullscreen (false) True to check for fullscreen, false for windowed. Returns boolean supported True if supported, false if not. See Also love.graphics