I have a bunch of constants:
Code:
const int SCREEN_WIDTH = 500;
const int SCREEN_HEIGHT = 500;
const int MAZE_WIDTH = 21;
const int MAZE_HEIGHT = 21;
const int TILE_SIZE = 50;
Which are required by a couple of my source files.
How do I share them with my source files?
Do I make a headerfile with #define statements eg. #define SCREEN_WIDTH 500
Or do I make a headerfile with them defined as static variables?
Or do I make a headerfile with them declared as extern variables and define them in another source file?