love.load()
love.load to do one-time setup of your game
love.update(dt)
love.update which is used to manage your game’s state frame-to-frame. Much like a game loop
love.draw()
love.draw() which is used to render the game state onto the screen.
Example
Draw a rectangle and it continues to expand in height and width
-- Load some default values for our rectangle. function love.load() x, y, w, h = 20, 20, 60, 20 end -- Increase the size of the rectangle every frame. function love.update(dt) w = w + 1 h = h + 1 end -- Draw a coloured rectangle. function love.draw() -- In versions prior to 11.0, color component values are (0, 102, 102) love.graphics.setColor(0, 0.4, 0.4) love.graphics.rectangle("fill", x, y, w, h) end