Version 0.2.0
LÖVE Documentation
OverviewLicenceCreditsGetting started
Devices
love.objectslove.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timer
Types
AnimationColorFontImageMusicSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
update( dt )
This function should update the state of the game according to the time value dt.
Usage
update( dt )
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