itch.io is community of indie game creators and players

Devlogs

New version after 40 days

Lua Carousel
A downloadable freewheeling app for Windows, macOS, Linux, and Android

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
    1 day ago
  • carousel-bk-safe.love 119 kB
    1 day ago
Download Lua Carousel
Read comments (1)