mirror of
https://github.com/usysrc/LICK.git
synced 2024-11-16 09:34:22 +00:00
example main.lua
This commit is contained in:
parent
58ffde8b27
commit
259628e2ef
15
main.lua
Normal file
15
main.lua
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user