love

The root module which contains all the other modules. Clearly the loveliest module of all.

Contents

Modules

love.audio Provides an interface to create noise with the user's speakers.
love.event Manages events, like keypresses.
love.filesystem Provides an interface to the user's filesystem.
love.font Allows you to work with fonts.
love.graphics The graphics module.
love.image Provides an interface to decode encoded image data.
love.joystick Provides an interface to the user's joystick.
love.keyboard Provides an interface to the user's keyboard.
love.mouse Provides an interface to the user's mouse.
love.physics Can simulate 2D rigid body physics in a realistic manner.
love.timer Provides an interface to the user's clock.

Types

Data The superclass of all data.
Object The superclass of all LÖVE types.

Callbacks

love.draw Callback function used to draw on the screen every frame.
love.focus Callback function triggered when window receives or loses focus.
love.joystickpressed Called when a joystick button is pressed.
love.joystickreleased Called when a joystick button is released.
love.keypressed Callback function triggered when a key is pressed.
love.keyreleased Callback function triggered when a key is released.
love.load This function is called exactly once at the beginning of the game.
love.mousepressed Callback function triggered when a mouse button is pressed.
love.mousereleased Callback function triggered when a mouse button is released.
love.quit Callback function triggered when the game is closed.
love.run The main function, containing the main loop. A sensible default is used when left out.
love.update Callback function used to update the state of the game every frame.


Other Languages

Retrieved from "http://love2d.org/wiki/love"
Personal tools