livecoding library for LÖVE
Go to file
2012-06-14 00:06:39 +02:00
lick.lua 4 spaces indentation 2012-06-10 13:33:39 +02:00
README.md Some more explanation. 2012-06-14 00:06:39 +02:00

#Live Coding Kit For Löve

A small live coding library for Löve which also enables interactive debugging. It basically just is a customized love.run which presses all errors to the command line(or in debug mode on screen). And reloads the “main.lua” everytime you save.

note: still in development - everything can change

#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 Here's a small example:

lick = require "lick"
lick.reset = true -- reload the 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

Note, though, that you need to have lick.lua on the same directory as your main.lua.