Initialising Variables
Posted: Sun Apr 18, 2004 10:20 am
I have a list of game settings.
Where can I put this code to ensure that these settings are made even before any other actors are created?
thrust = 1;
drag = 0.9;
dragBall = 0.985;
speedLimit = 10;
quarterDuration = 5;
playerRightHomeX = 64;
playerLeftHomeX = -64;
ballHomeX = 0;
postTransp = 0.4;
postFadeSpeed = 0.05;
titleFadeSpeed = 0.04;
titleIsFading = FALSE;
allGoingHome = FALSE;
userKeysOn = FALSE;
instructionsBlue.transp = 0.5;
instructionsRed.transp = 0.5;
quarterText.textNumber = 1;
quarterText.transp = 0.5;
boost = 2;
redIsBoosting = FALSE;
blueIsBoosting = FALSE;
boostDuration = 1000;
ballAndPlayersAreHome = FALSE;
returnHomeSpeed = 50;
redLeftBlueRight = TRUE;
mouseControl = FALSE;
Where can I put this code to ensure that these settings are made even before any other actors are created?
thrust = 1;
drag = 0.9;
dragBall = 0.985;
speedLimit = 10;
quarterDuration = 5;
playerRightHomeX = 64;
playerLeftHomeX = -64;
ballHomeX = 0;
postTransp = 0.4;
postFadeSpeed = 0.05;
titleFadeSpeed = 0.04;
titleIsFading = FALSE;
allGoingHome = FALSE;
userKeysOn = FALSE;
instructionsBlue.transp = 0.5;
instructionsRed.transp = 0.5;
quarterText.textNumber = 1;
quarterText.transp = 0.5;
boost = 2;
redIsBoosting = FALSE;
blueIsBoosting = FALSE;
boostDuration = 1000;
ballAndPlayersAreHome = FALSE;
returnHomeSpeed = 50;
redLeftBlueRight = TRUE;
mouseControl = FALSE;