Body:setInertia

Body:setInertia Set the inertia of a body. This value can also be set by the fourth argument of Body:setMass. Function Synopsis Body:setInertia( inertia ) Arguments number inertia The new moment of inertia, in kilograms * pixel squared. Returns Nothing. See Also Body

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

Fixture:getMask

Fixture:getMask Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns which categories this fixture should NOT collide with. Function Synopsis mask1, mask2, ... = Fixture:getMask( ) Arguments None. Returns number mask1 The first category selected by the mask. number mask2 The second category selected by the mask. See Also Fixture Fixture:setMask

love.graphics.getPointSize

love.graphics.getPointSize Gets the point size. Function Synopsis size = love.graphics.getPointSize( ) Arguments None. Returns number size The current point size. Examples Increase the point size by 1 by using love.graphics.setPointSize. function love.draw() local s = love.graphics.getPointSize() + 1; love.graphics.setPointSize(s); love.graphics.point(100, 100); end See Also love.graphics love.graphics.point love.graphics.setPointSize love.graphics.getMaxPointSize

love.graphics.setBackgroundColor

love.graphics.setBackgroundColor Sets the background color. Function Synopsis love.graphics.setBackgroundColor( red, green, blue ) Arguments number red The red component (0-255). number green The green component (0-255). number blue The blue component (0-255). Returns Nothing. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis love.graphics.setBackgroundColor( red, green, blue, alpha ) Arguments number red The red component (0-255). numbe

enet.peer:disconnect now

enet.peer:disconnect now Force immediate disconnection from peer. Foreign peer not guaranteed to receive disconnect notification. Function Synopsis peer:disconnect_now(data) Arguments number data Optional integer value to be associated with the disconnect. Returns Nothing. See Also lua-enet enet.peer

love.filedropped

love.filedropped Available since LÖVE 0.10.0 This function is not supported in earlier versions. Callback function triggered when a file is dragged and dropped onto the window. Function Synopsis love.filedropped( file ) Arguments File file The unopened File object representing the file that was dropped. Returns Nothing. Notes File:open must be called on the file before reading from or writing to it. File:getFilename will return the full platform-dependent path to the file. See Also l

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

love.thread.getThreads Available since LÖVE 0.7.0 and removed in LÖVE 0.9.0 This function is not supported in earlier or later versions. Get all threads. Function Synopsis threads = love.thread.getThreads( ) Arguments None. Returns table threads A table containing all threads indexed by their names. See Also love.thread

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