Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Running
  2. =======
  3.  
  4. Run a loop in a file `loep.lua` with
  5.  
  6. $ love . loep
  7.  
  8. Rendering
  9. =========
  10.  
  11. Render it with
  12.  
  13. $ ./render.sh loep
  14.  
  15. Writing
  16. =======
  17.  
  18. A loop can implement `:draw()` and `:update(dt)`.
  19. A value `self.time` is incremented by `dt` automatically in `DemoLoop:update` so you can just use that to render with.
  20. 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