Created
April 29, 2012 21:40
-
-
Save mistercam/2553397 to your computer and use it in GitHub Desktop.
Function to set a message that should be drawn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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