Ok, so I'm trying to make a simple game, and instead of hardcoding my starting values for the player's image location, I want to calculate the position based on display size. My problem is that in my player's implementation file, the Allegro display is not defined. I also can't find a way to get a const to span object files (since I'm compiling each .h/.cpp combination into a .o and then combining the .o files). And the #define directive does not span object files either. Am I going about it the wrong way, or am I going to have to just define the SCREEN_W and SCREEN_H variables in each header?
Edited by swiftcoder, 04 September 2012 - 07:58 PM.