New version after 40 days


Today's version has 5 minor bugfixes. The repository has the details. But the major quality of life improvement that merits a new version: the code editor spreads out over the whole screen width on phones with small screens. Thanks Origedit for the suggestion.

g = love.graphics
arc = g.arc
color = g.setColor
pi = math.pi
angle = 1
speed = 4 -- chomps/s
function car.draw()
  color(0.7, 0.7, 0)
  arc('fill', 100,100, 30, 2*pi-angle, angle)
end
function car.update(dt)
  if angle > 1 then
    speed = -speed
    angle = 1
  elseif angle < 0 then
    speed = -speed
    angle = 0
  end
  angle = angle + speed*2*dt
end

Files

carousel-bk.love 119 kB
37 days ago
carousel-bk-safe.love 119 kB
37 days ago

Get Lua Carousel

Comments

Log in with itch.io to leave a comment.

Great Work , Keep it up!