Hi,
I'm trying to work through the Dark Invaders tutorial - but I'm a bit of a newbe to c++.
At the top of dark invaders.cpp there is:
enum eMode { eGameSetup , eGameReset , eGameTitle , eGameWaitForFire , eGameLevel , eGameLevelWait
, eGameLevelWait2 , eGamePlay , eGameDie , eGameWin , eGameOver };
eMode g_eGameMode = eGameSetup;
int g_iLevel = 1;
int g_iLevelStartTime = 0;
I understand what the eMode variable does, but I don't understand the reason for the "eMode g_eGameMode = eGameSetup;" line - what does this do?
Thanks for any help!!