step.lua 426 B

123456789101112131415
  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. {
  10. name = 'delta',
  11. type = 'number',
  12. description = 'The amount of time since the last call to this function, in seconds.'
  13. }
  14. }
  15. }