Version 0.3.2
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Callback
update( dt )
This function should update the state of the game according to the time value dt.
Usage
function update( dt ) ... end
Arguments
dtThe time since last update in seconds.
Returns
Nothing
Examples
Example 1: Moving stuff player = { x = 100, y = 100 }

function update(dt)
   -- Move the player horizontally by +200px/second.
   player.x = player.x + 200 * dt
end