2011-03-03 23:56:33 +00:00
|
|
|
require "LICK"
|
|
|
|
require "LICK/lib"
|
|
|
|
ez = require "LICK/lib/hlpr"
|
|
|
|
lick.reset = true
|
|
|
|
lick.clearFlag = true
|
|
|
|
|
|
|
|
function love.load()
|
|
|
|
circle = Circle(300, 300, 5., 32, ez.color("orange"))
|
|
|
|
x = x or 0
|
|
|
|
sin1 = ez.sin(1)
|
|
|
|
end
|
|
|
|
|
|
|
|
function love.update(dt)
|
|
|
|
circle.pos.x = circle.pos.x + dt *200
|
|
|
|
|
|
|
|
circle:wrapX(200, 300)
|
|
|
|
x = x + dt * 3
|
|
|
|
end
|
|
|
|
|
|
|
|
function love.draw()
|
|
|
|
ez.cls(10)
|
2011-03-10 13:31:59 +00:00
|
|
|
ez.push()
|
2011-03-03 23:56:33 +00:00
|
|
|
ez.rotateCenter(x)
|
|
|
|
circle:draw("fill")
|
2011-03-10 13:31:59 +00:00
|
|
|
ez.pop()
|
2011-03-03 23:56:33 +00:00
|
|
|
end
|