RandomGenerator:random

RandomGenerator:random Available since LÖVE 0.9.0 This function is not supported in earlier versions. Generates a pseudo-random number in a platform independent manner. Function Get uniformly distributed pseudo-random number within [0, 1]. Synopsis number = RandomGenerator:random( ) Arguments None. Returns number number The pseudo-random number. Function Get uniformly distributed pseudo-random integer number within [1, max]. Synopsis number = RandomGenerator:random( max ) Arguments n

(File):write

(File):write Write data to a file. Function Synopsis success, err = File:write( data, size ) Arguments string data The string data to write. number size (all) How many bytes to write. Returns boolean success Whether the operation was successful. string err The error string if an error occurred. Function Synopsis success, err = File:write( data, size ) Arguments Data data The Data object to write. number size (all) How many bytes to write. Returns boolean success Whether the operat

love.graphics.getModes

love.graphics.getModes Removed in LÖVE 0.9.0 Moved to the love.window module as love.window.getFullscreenModes. Gets a list of supported fullscreen modes. Function Synopsis modes = love.graphics.getModes( ) Arguments None. Returns table modes A table of width/height pairs. (Note that this may not be in order.) Examples Format of the returned table modes = love.graphics.getModes()   -- modes = { -- { width = 320, height = 240 }, -- { width = 640, height = 480 }, -- { width = 800, he

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

SpriteBatch:getImage

SpriteBatch:getImage Available since LÖVE 0.8.0 This method is not supported in earlier versions. Removed in LÖVE 0.10.0 Use SpriteBatch:getTexture instead. Returns the image used by the SpriteBatch. Function Synopsis image = SpriteBatch:getImage( ) Arguments None Returns Image image The image for the sprites. See Also SpriteBatch SpriteBatch:setImage

Shape:setData

Shape:setData Removed in LÖVE 0.8.0 Use Fixture:setUserData instead. Set data to be passed to the collision callback. When a shape collides, the value set here will be passed to the collision callback as one of the parameters. Typically, you would want to store a table reference here, but any value can be used. Function Synopsis Shape:setData( v ) Arguments any v Any Lua value. Returns Nothing. See Also Shape Shape:getData

love.physics.newPrismaticJoint

love.physics.newPrismaticJoint Creates a PrismaticJoint between two bodies. A prismatic joint constrains two bodies to move relatively to each other on a specified axis. It does not allow for relative rotation. Its definition and operation are similar to a revolute joint, but with translation and force substituted for angle and torque. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis joint = love.physics.newPrismaticJoint( body1, body2, x,

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

Video:setSource

Video:setSource Available since LÖVE 0.10.0 This function is not supported in earlier versions. Sets the audio Source used for playing back the video's audio. The audio Source also controls playback speed and synchronization. Function Synopsis Video:setSource( source ) Arguments Source source (nil) The audio Source used for audio playback, or nil to disable audio synchronization. Returns Nothing. See Also Video Video:getSource Source

love.joystickreleased

love.joystickreleased Called when a joystick button is released. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis love.joystickreleased( joystick, button ) Arguments Joystick joystick The joystick object. number button The button number. Returns Nothing. Function Removed in LÖVE 0.9.0 This variant is not supported in that and later versions. Synopsis love.joystickreleased( joystick, button ) Arguments number joystick The joystick num