Created
April 29, 2012 18:50
-
-
Save mistercam/2552618 to your computer and use it in GitHub Desktop.
Some required vars for our Quil Reversi sketch
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
(def footer-height 30) ; space below the board to show the current player | |
(def piece-size 70) ; the width and height of a board square | |
(def gap-size 5) ; the vertical and horizontal spacing between squares | |
(def board-size (+ (* 8 piece-size) (* 7 gap-size))) ; the board size | |
(def padding 5) ; the spacing within a square that surrounds a piece | |
(def message-width (- board-size 80)) ; the width of the message box | |
(def message-height 80) ; the height of the message box | |
(def fps 10) ; the number of times per second are sketch will be redrawn | |
(def color-black [0 0 0]) | |
(def color-grey [200 200 200]) | |
(def color-white [255 255 255]) | |
(def color-green [0 136 0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment