Advertisement
Suby

constants.h

Jun 1st, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.06 KB | None | 0 0
  1. #ifndef CONSTANTS_H
  2. #define CONSTANTS_H
  3.  
  4. //The screen attributes
  5. const int SCREEN_WIDTH = 800;
  6. const int SCREEN_HEIGHT = 500;
  7. const int SCREEN_BPP = 32;
  8. const int BACKGROUND_RED = 130;
  9. const int BACKGROUND_GREEN = 130;
  10. const int BACKGROUND_BLUE = 130;
  11.  
  12. const int SQUARE_WIDTH = 10;
  13. const int SQUARE_HEIGHT = 10;
  14.  
  15. const int NUMBER_OF_CELLS_HORIZONTAL = SCREEN_WIDTH / SQUARE_WIDTH;
  16. const int NUMBER_OF_CELLS_VERTICAL = SCREEN_HEIGHT / SQUARE_HEIGHT;
  17. const int NUMBER_OF_CELLS_ON_GRID = NUMBER_OF_CELLS_HORIZONTAL * NUMBER_OF_CELLS_VERTICAL;
  18.  
  19. const int TURNING_CELLS_ON = 1;
  20. const int TURNING_CELLS_OFF = 0;
  21.  
  22. const int GREEN = 0;
  23. const int RED = 1;
  24. const int NO_COLOR = -1;
  25.  
  26. const int NUMBER_OF_BUTTONS = 7;
  27. const int START_BUTTON = 0;
  28. const int STOP_BUTTON = 1;
  29. const int SPEED_BUTTON = 2;
  30. const int INSIDE_SPEED_MENU = 3;
  31. const int SLOW_BUTTON = 4;
  32. const int NORMAL_BUTTON = 5;
  33. const int FAST_BUTTON = 6;
  34.  
  35. const int SLOW_INTERVAL = 600;
  36. const int NORMAL_INTERVAL = 200;
  37. const int FAST_INTERVAL = 10;
  38.  
  39. const int FRAMES_PER_SECOND = 60;
  40.  
  41. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement