SHARE
TWEET

Untitled

a guest Mar 21st, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Constants for bricks */
  2. var NUM_ROWS = 8;
  3. var BRICK_TOP_OFFSET = 10;
  4. var BRICK_SPACING = 2;
  5. var NUM_BRICKS_PER_ROW = 10;
  6. var BRICK_HEIGHT = 10;
  7. var SPACE_FOR_BRICKS = getWidth() - (NUM_BRICKS_PER_ROW + 1) * BRICK_SPACING;
  8. var BRICK_WIDTH = SPACE_FOR_BRICKS / NUM_BRICKS_PER_ROW;
  9.  
  10. /* Constants for ball and paddle */
  11. var PADDLE_WIDTH = 80;
  12. var PADDLE_HEIGHT = 15;
  13. var PADDLE_OFFSET = 10;
  14.  
  15. var BALL_RADIUS = 15;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top