love.graphics.getWidth

love.graphics.getWidth Available since LÖVE 0.2.1 This function is not supported in earlier versions. Gets the width in pixels of the window. Function Synopsis width = love.graphics.getWidth( ) Arguments None. Returns number width The width of the window. See Also love.graphics love.graphics.getHeight love.graphics.getDimensions

PrismaticJoint:isLimitEnabled

PrismaticJoint:isLimitEnabled Available since LÖVE 0.8.0 This function is not supported in earlier versions. Removed in LÖVE 0.9.0 It has been renamed to PrismaticJoint:hasLimitsEnabled. Checks whether the limits are enabled. Function Synopsis enabled = PrismaticJoint:isLimitEnabled( ) Arguments None. Returns boolean enabled True if enabled, false otherwise. See Also PrismaticJoint

Fixture:setDensity

Fixture:setDensity Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the density of the fixture. Call Body:resetMassData if this needs to take effect immediately. Function Synopsis Fixture:setDensity( density ) Arguments number density The fixture density in kilograms per square meter. Returns Nothing. See Also Fixture Fixture:getDensity

Quad:setViewport

Quad:setViewport Sets the texture coordinates according to a viewport. Function Synopsis Quad:setViewport( x, y, w, h ) Arguments number x The top-left corner along the x-axis. number y The top-right corner along the y-axis. number w The width of the viewport. number h The height of the viewport. Returns Nothing. See Also Quad

Text:set

Text:set Available since LÖVE 0.10.0 This function is not supported in earlier versions. Replaces the contents of the Text object with a new unformatted string. Function Synopsis Text:set( textstring ) Arguments string textstring The new string of text to use. Returns Nothing. Function Synopsis Text:set( coloredtext ) Arguments table coloredtext A table containing colors and strings to use as the new text, in the form of {color1, string1, color2, string2, ...}. table color1 A table c

love.graphics.newFont

love.graphics.newFont Creates a new Font. Created fonts are not cached, in that calling this function with the same arguments will always create a new Font 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 font = love.graphics.newFont( filename, size ) Arguments string filename The filepath to the font file. number size (12

enet.peer:reset

enet.peer:reset Forcefully disconnects peer. The peer is not notified of the disconnection. Function Synopsis peer:reset() Arguments None. Returns Nothing. See Also lua-enet enet.peer

Video:getWidth

Video:getWidth Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the width of the Video in pixels. Function Synopsis width = Video:getWidth( ) Arguments None. Returns number width The width of the Video. See Also Video Video:getHeight Video:getDimensions

Channel:demand

Channel:demand Available since LÖVE 0.9.0 This function is not supported in earlier versions. Retrieves the value of a Channel message and removes it from the message queue. It waits until a message is in the queue then returns the message value. Function Synopsis value = Channel:demand( ) Arguments None. Returns Variant value The contents of the message. See Also Channel Channel:supply Channel:pop

(Image):setWrap

(Image):setWrap Sets the wrapping properties of an Image. This function sets the way an Image is repeated when it is drawn with a Quad that is larger than the image's extent. An image may be clamped or set to repeat in both horizontal and vertical directions. Clamped images appear only once, but repeated ones repeat as many times as there is room in the Quad. N.B. If you use a Quad that is larger than the image extent and do not use repeated tiling, there may be an unwanted visual effect of