From 2424c29fcaed26990e2a66c7e321bb04d117922e Mon Sep 17 00:00:00 2001 From: headchant Date: Sun, 10 Jun 2012 13:38:04 +0200 Subject: [PATCH] small example --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 7272b64..76cf606 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file