Skip to content

Instantly share code, notes, and snippets.

@mistercam
Created April 29, 2012 21:40
Show Gist options
  • Save mistercam/2553397 to your computer and use it in GitHub Desktop.
Save mistercam/2553397 to your computer and use it in GitHub Desktop.
Function to set a message that should be drawn
(defn set-message [m message]
"Specifies a new message to be drawn to the screen, and the length of time it
remain."
(let [seconds (* 3 fps)]
(reset! m [seconds message])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment