示例#1
0
        private GameData()
        {
            firstRunEver = true;

            defaults = CCUserDefault.SharedUserDefault;

            soundFXMuted   = defaults.GetBoolForKey("soundFXMutedKey");             //will default to NO if there's no previous default value
            voiceFXMuted   = defaults.GetBoolForKey("voiceFXMutedKey");             //will default to NO if there's no previous default value
            ambientFXMuted = defaults.GetBoolForKey("ambientFXMutedKey");           //will default to NO if there's no previous default value

            pointTotalForAllLevels = 0;

            levelsCompleted = defaults.GetIntegerForKey("levelsCompletedAllTime");
            level           = 1;   //use 0 to show a testbed of shapes

            maxLevels = 30;        // change to whatever, could be more or less

            CCLog.Log(" Levels completed over all time: {0}", levelsCompleted);

            eachLevelSectionIsHowManyLevels = 1;

            highScoreLevel = new int[30];

            for (int x = 0; x < highScoreLevel.Length; x++)
            {
                highScoreLevel[x] = defaults.GetIntegerForKey("highScoreLevel" + (x + 1));
            }
        }
示例#2
0
        private GameData()
        {
            defaults = CCUserDefault.SharedUserDefault;

            firstRunEver = defaults.GetBoolForKey("firstRunEverKey", true);

            soundFXMuted   = defaults.GetBoolForKey("soundFXMutedKey");             //will default to NO if there's no previous default value
            voiceFXMuted   = defaults.GetBoolForKey("voiceFXMutedKey");             //will default to NO if there's no previous default value
            ambientFXMuted = defaults.GetBoolForKey("ambientFXMutedKey");           //will default to NO if there's no previous default value
        }
示例#3
0
		private GameData ()
		{
			defaults = CCUserDefault.SharedUserDefault;

			firstRunEver = defaults.GetBoolForKey("firstRunEverKey", true);

			soundFXMuted = defaults.GetBoolForKey("soundFXMutedKey");   //will default to NO if there's no previous default value
			voiceFXMuted = defaults.GetBoolForKey("voiceFXMutedKey");   //will default to NO if there's no previous default value
			ambientFXMuted = defaults.GetBoolForKey("ambientFXMutedKey");   //will default to NO if there's no previous default value


		}
示例#4
0
        private GameData()
        {
            firstRunEver = true;

            defaults = CCUserDefault.SharedUserDefault;

            soundFXMuted = defaults.GetBoolForKey("soundFXMutedKey");   //will default to NO if there's no previous default value
            voiceFXMuted = defaults.GetBoolForKey("voiceFXMutedKey");   //will default to NO if there's no previous default value
            ambientFXMuted = defaults.GetBoolForKey("ambientFXMutedKey");   //will default to NO if there's no previous default value

            pointTotalForAllLevels = 0;

            levelsCompleted = defaults.GetIntegerForKey("levelsCompletedAllTime");
            level = 1; //use 0 to show a testbed of shapes

            maxLevels = 30; // change to whatever, could be more or less

            CCLog.Log(" Levels completed over all time: {0}", levelsCompleted  );

            eachLevelSectionIsHowManyLevels = 1;

            highScoreLevel = new int[30];

            for (int x = 0; x < highScoreLevel.Length; x++)
            {
                highScoreLevel[x] = defaults.GetIntegerForKey("highScoreLevel" + (x + 1));
            }
        }