Run a loop in a file loep.lua
with
$ love . loep
Render it with
$ ./render.sh loep
A loop can implement :draw()
and :update(dt)
.
A value self.time
is incremented by dt
automatically in DemoLoop:update
so you can just use that to render with.
Set a Loop.length
or self.length
to make it wrap around during render after that many seconds (see example).