From 259628e2ef1e0c4076cd5465a07f0c5e0b0bed37 Mon Sep 17 00:00:00 2001 From: usysrc Date: Sat, 27 Nov 2021 20:56:29 +0100 Subject: [PATCH] example main.lua --- main.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 main.lua diff --git a/main.lua b/main.lua new file mode 100644 index 0000000..67ec071 --- /dev/null +++ b/main.lua @@ -0,0 +1,15 @@ +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