livecoding library for LÖVE
Go to file
2024-03-09 23:18:18 +01:00
conf.lua feat: new example patch 2024-03-09 23:17:48 +01:00
LICENSE docs: 📄 updated license 2024-03-09 23:18:18 +01:00
lick.lua refactor: ♻️ cleaned up local variables 2024-03-09 23:17:08 +01:00
main.lua feat: new example patch 2024-03-09 23:17:48 +01:00
README.md changed Löve to LÖVE 2021-11-27 21:11:04 +01:00

livecoding library for LÖVE

This is a small live coding library for LÖVE.

It contains a customized love.run which watches for file changes in your source and loads if necessary. Errors get redirected to the command line or on screen.

Needs LÖVE 11.3.

Optional Parameters

  • lick.file = "" -- default is "main.lua"
  • lick.debug = true -- displays errors in love window
  • lick.reset = true -- calls love.load everytime you save the file, if set to false it will only be called when starting LÖVE
  • lick.clearFlag = false -- overrides the clear() function in love.run

Example main.lua

lick = require "lick"
lick.reset = true -- reload love.load everytime you save

function love.load()
    circle = {}
    circle.x = 1
end

function love.update(dt)
    circle.x = circle.x + dt*5
end

function love.draw(dt)
    love.graphics.circle("fill", 400+100*math.sin(circle.x), 300, 16,16)
end