step.lua 494 B

1234567891011121314151617181920
  1. return {
  2. summary = 'Steps the internal clock.',
  3. description = [[
  4. Steps the timer, returning the new delta time. This is called automatically in `lovr.run` and
  5. it's used to calculate the new `dt` to pass to `lovr.update`.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. delta = {
  10. type = 'number',
  11. description = 'The amount of time since the last call to this function, in seconds.'
  12. }
  13. },
  14. variants = {
  15. {
  16. arguments = {},
  17. returns = { 'delta' }
  18. }
  19. }
  20. }