Skip to content

Instantly share code, notes, and snippets.

@aib
Created September 18, 2012 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aib/3746298 to your computer and use it in GitHub Desktop.
Save aib/3746298 to your computer and use it in GitHub Desktop.
(loop [last-tick-time (Sys/getTime)]
(let [current-time (Sys/getTime)
delta-seconds (- current-time last-tick-time)]
;tick game
(Display/update)
(if (not (should-quit?))
(recur current-time))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment