Example #1
0
        public static void SaveEndWave()
        {
            WebGLJump.SaveData(SaveKeys.Money, Money.ToString());

            for (int i = 0; i < Objectives.activeTasks.Length; ++i)
            {
                WebGLJump.SaveData(SaveKeys.ObjectivesActive + i.ToString(), Objectives.activeTasks[i].ToString());
            }
            WebGLJump.SaveData(SaveKeys.ObjectivesComplete, AmountOfObjectivesComplete.ToString());

            for (int i = 0; i < BlocksLoaded.Length; ++i)
            {
                WebGLJump.SaveData(SaveKeys.BlocksLoaded + i.ToString(), BlocksLoaded[i].ToString());
            }
            for (int i = 0; i < AmmoLoaded.Length; ++i)
            {
                WebGLJump.SaveData(SaveKeys.AmmoLoaded + i.ToString(), AmmoLoaded[i].ToString());
            }

            WebGLJump.SaveData(SaveKeys.ShotsFired, ShotsFired.ToString());
            WebGLJump.SaveData(SaveKeys.TimesDefeated, TimesDefeated.ToString());
            WebGLJump.SaveData(SaveKeys.MatchStreak, MatchStreak.ToString());

            WebGLJump.SaveData(SaveKeys.DisconcertingObjectivesSeen, DisconcertingObjectivesSeen.ToString());
        }
Example #2
0
        public static void SaveHardcore()
        {
            int[] scores = new int[SCORES_TO_KEEP * 2];
            for (int i = 0; i < SCORES_TO_KEEP; i++)
            {
                if (i >= BestHardcoreScores.Count)
                {
                    break;
                }
                scores[i * 2]     = BestHardcoreScores[i].Item1;
                scores[i * 2 + 1] = BestHardcoreScores[i].Item2;
            }

            for (int i = 0; i < scores.Length; ++i)
            {
                WebGLJump.SaveData(SaveKeys.BestHardcoreScores + i.ToString(), scores[i].ToString());
            }
        }
Example #3
0
        public static void SaveRemote()
        {
            WebGLJump.SaveData(SaveKeys.DefeatWithGun, ((int)defeatWithGun).ToString());
            WebGLJump.SaveData(SaveKeys.PreviousDefeatWithGun, ((int)previousDefeatWithGun).ToString());
            WebGLJump.SaveData(SaveKeys.AmountToDefeat, amountToDefeat.ToString());

            WebGLJump.SaveData(SaveKeys.AmmoToUpgrade, ((int)ammoToUpgrade).ToString());
            WebGLJump.SaveData(SaveKeys.PreviousAmmoToUpgrade, ((int)previousAmmoToUpgrade).ToString());
            WebGLJump.SaveData(SaveKeys.LeveToUpgrade, leveToUpgrade.ToString());

            WebGLJump.SaveData(SaveKeys.LevelToHealing, levelToHealing.ToString());

            WebGLJump.SaveData(SaveKeys.LevelToHeart, levelToHeart.ToString());
            WebGLJump.SaveData(SaveKeys.IsLevelingHeart, (isLevelingHeart ? 1 : 0).ToString());

            WebGLJump.SaveData(SaveKeys.AmountofBlocksToMake, amountofBlocksToMake.ToString());
            WebGLJump.SaveData(SaveKeys.MakeXSize, makeXSize.ToString());
            WebGLJump.SaveData(SaveKeys.MakeYSize, makeYSize.ToString());

            WebGLJump.SaveData(SaveKeys.AmountOfSizedBlocksToLoadToGun, amountOfSizedBlocksToLoadToGun.ToString());
            WebGLJump.SaveData(SaveKeys.LoadGunXSize, loadGunXSize.ToString());
            WebGLJump.SaveData(SaveKeys.LoadGunYSize, loadGunYSize.ToString());

            WebGLJump.SaveData(SaveKeys.AmountOfSizedBlocksToLoadToSpecial, amountOfSizedBlocksToLoadToSpecial.ToString());
            WebGLJump.SaveData(SaveKeys.LoadSpecialXSize, loadSpecialXSize.ToString());
            WebGLJump.SaveData(SaveKeys.LoadSpecialYSize, loadSpecialYSize.ToString());

            WebGLJump.SaveData(SaveKeys.AmountToHaveInBank, amountToHaveInBank.ToString());

            WebGLJump.SaveData(SaveKeys.AmmoGunToSend, ((int)ammoGunToSend).ToString());

            WebGLJump.SaveData(SaveKeys.AmmoSpecialToSend, ((int)ammoSpecialToSend).ToString());

            WebGLJump.SaveData(SaveKeys.AmountOfElementsMatching, amountOfElementsMatching.ToString());

            WebGLJump.SaveData(SaveKeys.AmountOfBossesToDefeat, amountOfBossesToDefeat.ToString());
            WebGLJump.SaveData(SaveKeys.CurrentBossesDefeated, currentBossesDefeated.ToString());

            WebGLJump.SaveData(SaveKeys.DaysToReach, daysToReach.ToString());

            WebGLJump.SaveData(SaveKeys.CurrentFreeTask, currentFreeTask);
        }
Example #4
0
        public static void SaveStore()
        {
            WebGLJump.SaveData(SaveKeys.Money, Money.ToString());
            WebGLJump.SaveData(SaveKeys.Hearts, Hearts.ToString());
            WebGLJump.SaveData(SaveKeys.Armor, Armor.ToString());
            WebGLJump.SaveData(SaveKeys.Healing, Healing.ToString());

            for (int i = 0; i < GunOwned.Length; ++i)
            {
                WebGLJump.SaveData(SaveKeys.GunOwned + i.ToString(), GunOwned[i].ToString());
            }
            for (int i = 0; i < GunPower.Length; ++i)
            {
                WebGLJump.SaveData(SaveKeys.GunPower + i.ToString(), GunPower[i].ToString());
            }
            for (int i = 0; i < GunEquipped.Length; ++i)
            {
                WebGLJump.SaveData(SaveKeys.GunEquipped + i.ToString(), GunEquipped[i].ToString());
            }
        }
Example #5
0
 public static void SaveOptions()
 {
     WebGLJump.SaveData(SaveKeys.MusicVolume, ((int)(Choom.MusicVolume * 100)).ToString());
     WebGLJump.SaveData(SaveKeys.EffectVolume, ((int)(Choom.EffectVolume * 100)).ToString());
 }