Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CONSTANTS_H
- #define CONSTANTS_H
- //The screen attributes
- const int SCREEN_WIDTH = 800;
- const int SCREEN_HEIGHT = 500;
- const int SCREEN_BPP = 32;
- const int BACKGROUND_RED = 130;
- const int BACKGROUND_GREEN = 130;
- const int BACKGROUND_BLUE = 130;
- const int SQUARE_WIDTH = 10;
- const int SQUARE_HEIGHT = 10;
- const int NUMBER_OF_CELLS_HORIZONTAL = SCREEN_WIDTH / SQUARE_WIDTH;
- const int NUMBER_OF_CELLS_VERTICAL = SCREEN_HEIGHT / SQUARE_HEIGHT;
- const int NUMBER_OF_CELLS_ON_GRID = NUMBER_OF_CELLS_HORIZONTAL * NUMBER_OF_CELLS_VERTICAL;
- const int TURNING_CELLS_ON = 1;
- const int TURNING_CELLS_OFF = 0;
- const int GREEN = 0;
- const int RED = 1;
- const int NO_COLOR = -1;
- const int NUMBER_OF_BUTTONS = 7;
- const int START_BUTTON = 0;
- const int STOP_BUTTON = 1;
- const int SPEED_BUTTON = 2;
- const int INSIDE_SPEED_MENU = 3;
- const int SLOW_BUTTON = 4;
- const int NORMAL_BUTTON = 5;
- const int FAST_BUTTON = 6;
- const int SLOW_INTERVAL = 600;
- const int NORMAL_INTERVAL = 200;
- const int FAST_INTERVAL = 10;
- const int FRAMES_PER_SECOND = 60;
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement