love.visible

love.visible Available since LÖVE 0.9.0 This callback is not supported in earlier versions. Callback function triggered when window is minimized/hidden or unminimized by the user. Function Synopsis love.visible( visible ) Arguments boolean visible True if the window is visible, false if it isn't. Returns Nothing. Example function love.visible(v) print(v and "Window is visible!" or "Window is not visible!"); end See Also love

love.audio.setOrientation

love.audio.setOrientation Sets the orientation of the listener. Function Synopsis love.audio.setOrientation( fx, fy, fz, ux, uy, uz ) Arguments number fx, fy, fz Forward vector of the listener orientation. number ux, uy, uz Up vector of the listener orientation. Returns Nothing. See Also love.audio

love.system.vibrate

love.system.vibrate Available since LÖVE 0.10.0 This function is not supported in earlier versions. Causes the device to vibrate, if possible. Currently this will only work on Android and iOS devices that have a built-in vibration motor. Function Synopsis love.system.vibrate( seconds ) Arguments number seconds (0.5) The duration to vibrate for. If called on an iOS device, it will always vibrate for 0.5 seconds due to limitations in the iOS system APIs. Returns Nothing. See Also love.s

RandomGenerator:setSeed

RandomGenerator:setSeed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the seed of the random number generator using the specified integer number. Function Synopsis RandomGenerator:setSeed( seed ) Arguments number seed The integer number with which you want to seed the randomization. Must be within the range of [1, 2^53]. Returns Nothing. Notes Due to Lua's use of double-precision floating point numbers, values above 2^53 cannot be accurately repres

love.graphics.print

love.graphics.print Draws text on screen. If no Font is set, one will be created and set (once) if needed. As of LOVE 0.7.1, when using translation and scaling functions while drawing text, this function assumes the scale occurs first. If you don't script with this in mind, the text won't be in the right position, or possibly even on screen. love.graphics.print and love.graphics.printf both suppport UTF-8 encoding. You'll also need a proper Font for special characters. Function Synopsis love

Fixture:getShape

Fixture:getShape Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the shape of the fixture. This shape is a reference to the actual data used in the simulation. It's possible to change its values between timesteps. Do not call any functions on this shape after the parent fixture has been destroyed. This shape will point to an invalid memory address and likely cause crashes if you interact further with it. Function Synopsis shape = Fixture:getShape( ) Ar

Contact:getPosition

Contact:getPosition Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Get the location of the contact point between two shapes. Function Synopsis cx, cy = Contact:getPosition( ) Arguments None. Returns number cx The x coordinate of the contact point. number cy The y coordinate of the contact point. See Also Contact

love.graphics.newImageFont

love.graphics.newImageFont Creates a new Font by loading a specifically formatted image. In versions prior to 0.9.0, LÖVE expects ISO 8859-1 encoding for the glyphs string. 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 font = love.graphics.newImageFont( filename, glyphs ) Arguments string filename The filepath to the image fi

Source:getDirection

Source:getDirection Available since LÖVE 0.7.0 This function is not supported in earlier versions. Gets the direction of the Source. Function Synopsis x, y, z = Source:getDirection( ) Arguments None. Returns number x The X part of the direction vector. number y The Y part of the direction vector. number z The Z part of the direction vector. See Also Source

PrismaticJoint:setLowerLimit

PrismaticJoint:setLowerLimit Sets the lower limit. Function Synopsis PrismaticJoint:setLowerLimit( lower ) Arguments number lower The lower limit, usually in meters. Returns Nothing. See Also PrismaticJoint