SoundData:getSampleCount

SoundData:getSampleCount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns the number of samples per channel of the SoundData. Function Synopsis count = SoundData:getSampleCount( ) Arguments None. Returns number count Total number of samples. See Also SoundData

love.filesystem.setIdentity

love.filesystem.setIdentity Sets the write directory for your game. Note that you can only set the name of the folder to store your files in, not the location. Function Synopsis love.filesystem.setIdentity( name ) Arguments string name The new identity that will be used as write directory. Returns Nothing. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis love.filesystem.setIdentity( name, appendToPath ) Arguments string name The new ident

love.audio.setPosition

love.audio.setPosition Sets the position of the listener, which determines how sounds play. Function Synopsis love.audio.setPosition( x, y, z ) Arguments number x The x position of the listener. number y The y position of the listener. number z The z position of the listener. Returns Nothing. Remarks Setting a position only works for mono sources. WAV files are always loaded as stereo, OGG works fine. See Also love.audio Source:setPosition

love.physics.newCircleShape

love.physics.newCircleShape Script Example Missing love.physics.newCircleShape needs a script example, help out by writing one. Creates a new CircleShape. Function Available since LÖVE 0.8.0 These variants are not supported in earlier versions. Synopsis shape = love.physics.newCircleShape( radius ) Arguments number radius The radius of the circle. Returns CircleShape shape The new shape. Function Synopsis shape = love.physics.newCircleShape( x, y, radius ) Arguments number x The

love.window.getWidth

love.window.getWidth Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 Use love.graphics.getWidth or love.window.getMode instead. Gets the width of the window. Function Synopsis width = love.window.getWidth( ) Arguments None. Returns number width The width of the window. See Also love.window love.window.getHeight love.window.getDimensions love.window.setMode

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.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

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.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

(File):lines

(File):lines Iterate over all the lines in a file. Function Synopsis iterator = File:lines( ) Arguments None. Returns function iterator The iterator (can be used in for loops). See Also File