Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Running
- =======
- Run a loop in a file `loep.lua` with
- $ love . loep
- Rendering
- =========
- Render it with
- $ ./render.sh loep
- Writing
- =======
- 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).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement