(File):isOpen

(File):isOpen Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets whether the file is open. Function Synopsis open = File:isOpen( ) Arguments None. Returns boolean open True if the file is currently open, false otherwise. See Also File File:open

love.graphics.draw

love.graphics.draw Draws a Drawable object (an Image, Canvas, SpriteBatch, ParticleSystem, Mesh, or Video) on the screen with optional rotation, scaling and shearing. Objects are drawn relative to their local coordinate system. The origin is by default located at the top left corner of Image and Canvas. All scaling, shearing, and rotation arguments transform the object relative to that point. Also, the position of the origin can be specified on the screen coordinate system. It's possible to r

Body:getWorldVector

Body:getWorldVector Transform a vector from local coordinates to world coordinates. Function Synopsis worldX, worldY = Body:getWorldVector( localX, localY ) Arguments number localX The vector x component in local coordinates. number localY The vector y component in local coordinates. Returns number worldX The vector x component in world coordinates. number worldY The vector y component in world coordinates. See Also Body

love.graphics.newText

love.graphics.newText Available since LÖVE 0.10.0 This function is not supported in earlier versions. Creates a new drawable Text object. 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 text = love.graphics.newText( font, textstring ) Arguments Font font The font to use for the text. string textstring (nil) The initial strin

MouseJoint:setMaxForce

MouseJoint:setMaxForce Sets the highest allowed force. Function Synopsis MouseJoint:setMaxForce( f ) Arguments number f The max allowed force. Returns Nothing. See Also MouseJoint

love.physics.newWorld

love.physics.newWorld Creates a new World. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis world = love.physics.newWorld( xg, yg, sleep ) Arguments number xg (0) The x component of gravity. number yg (0) The y component of gravity. boolean sleep (true) Whether the bodies in this world are allowed to sleep. Returns World world A brave new World. Function Removed in LÖVE 0.8.0 This variant is not supported in that and later versions.

love.window.getMode

love.window.getMode Available since LÖVE 0.9.0 Moved from love.graphics.getMode. Gets the display mode and properties of the window. Function Synopsis width, height, flags = love.window.getMode( ) Arguments None. Returns number width Window width. number height Window height. table flags Table with the window properties: boolean fullscreen Fullscreen (true), or windowed (false). FullscreenType fullscreentype The type of fullscreen mode used. boolean vsync True if the graphics framer

love.graphics.setLineWidth

love.graphics.setLineWidth Sets the line width. Function Synopsis love.graphics.setLineWidth( width ) Arguments number width The width of the line. Returns Nothing. See Also love.graphics love.graphics.setLine

love.graphics.point

love.graphics.point Removed in LÖVE 0.10.0 It has been replaced by love.graphics.points. Draws a point. Function Synopsis love.graphics.point( x, y ) Arguments number x The position on the x-axis. number y The position on the y-axis. Returns Nothing. Notes The pixel grid is actually offset to the center of each pixel. So to get clean pixels drawn use 0.5 + integer increments. Points are not affected by love.graphics.scale - their size is always in pixels. Examples Render a starfiel

love.graphics.getColorMask

love.graphics.getColorMask Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the active color components used when drawing. Normally all 4 components are active unless love.graphics.setColorMask has been used. The color mask determines whether individual components of the colors of drawn objects will affect the color of the screen. They affect love.graphics.clear and Canvas:clear as well. Function Synopsis r, g, b, a = love.graphics.getColorMask( ) Argume