small example

This commit is contained in:
headchant 2012-06-10 13:38:04 +02:00
parent 5449f2f33a
commit 2424c29fca

View File

@ -10,3 +10,19 @@ note: still in development - everything can change
* 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
```Lua
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