love.window.getDimensions

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

love.window.toPixels

love.window.toPixels Available since LÖVE 0.9.2 This function is not supported in earlier versions. Converts a number from density-independent units to pixels. The pixel density inside the window might be greater (or smaller) than the "size" of the window. For example on a retina screen in Mac OS X with the highdpi window flag enabled, the window may take up the same physical size as an 800x600 window, but the area inside the window uses 1600x1200 pixels. love.window.toPixels(800) would re

Audio Formats

Audio Formats As of Love 0.9.1, the following audio formats are supported: Waveform Audio File Format (.wav) MPEG-1 or MPEG-2 Audio Layer III (.mp3) Ogg Vorbis (.ogg, .oga, .ogv) Tracker module formats (.699, .amf, .ams, .dbm, .dmf, .dsm, .far, .it, .j2b, .mdl, .med, .mod, .mt2, .mtm, .okt, .psm, .s3m, .stm, .ult, .umx, .xm) Other formats supported by libmodplug (.abc, .mid, .pat) See Also love.audio love.sound

ParticleSystem:hasRelativeRotation

ParticleSystem:hasRelativeRotation Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets whether particle angles and rotations are relative to their velocities. If enabled, particles are aligned to the angle of their velocities and rotate relative to that angle. Function Synopsis relative = ParticleSystem:hasRelativeRotation( ) Arguments None. Returns boolean enable True if relative particle rotation is enabled, false if it's disabled. See Also ParticleSy

CircleShape:getPoint

CircleShape:getPoint Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the center point of the circle shape. Function Synopsis x, y = CircleShape:getPoint( ) Arguments None. Returns number x The x-component of the center point of the circle. number y The y-component of the center point of the circle. See Also CircleShape CircleShape:setPoint

love.window.close

love.window.close Available since LÖVE 0.10.0 This function is not supported in earlier versions. Closes the window. It can be reopened with love.window.setMode. love.graphics functions and objects will cause a hard crash of LÖVE if used while the window is closed. Function Synopsis love.window.close( ) Arguments None. Returns Nothing. See Also love.window love.window.setMode love.graphics.isActive

Shape:getMask

Shape:getMask Removed in LÖVE 0.8.0 Use Fixture:getMask instead. Gets which categories this shape should NOT collide with. The number of masked categories is the number of return values. Function Synopsis ... = Shape:getMask( ) Arguments None. Returns number ... Numbers from 1-16 Examples With how many categories does this shape collide? print('shape collides with', select('#', shape:getMask()), 'categories') See Also Shape Shape:setMask

love.window.setDisplaySleepEnabled

love.window.setDisplaySleepEnabled Available since LÖVE 0.10.0 This function is not supported in earlier versions. Sets whether the display is allowed to sleep while the program is running. Display sleep is disabled by default. Some types of input (e.g. joystick button presses) might not prevent the display from sleeping, if display sleep is allowed. Function Synopsis love.window.setDisplaySleepEnabled( enable ) Arguments boolean enable True to enable system display sleep, false to disab

Source:tell

Source:tell Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the currently playing position of the Source. Function Synopsis position = Source:tell( unit ) Arguments TimeUnit unit ("seconds") The type of unit for the return value. Returns number position The currently playing position of the Source. See Also Source:seek Source

Thread:get

Thread:get Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0 It has been moved to the Channel api. Retrieves the value of a message and removes it from the thread's message box. Function Synopsis value = Thread:get( name ) Arguments string name The name of the message. Returns Variant value The contents of the message or nil when no message in message box. See Also Thread Thread:set