Now, I pass it through their initializer.
I would like to know if there is a way to use something like “global variables” for certain parameters such as “screen’s Size…etc”
I used to allocate a header file like “global.h”, which contains :
int global_x = 10;
int global_y = 10;
But my program will crash if multiple cpp file use this header file.
How do you guys use something as global variable???
By the way, is there any tutorial about using sqlite with cocos2dx?
Thanks a lot.