Exemple #1
0
        public override void Load()
        {
            base.Load();

            if (SuperTank2.Difficulty == DifficultyChoices.Normal)
            {
                ListEnemySpawner.Add(new Plane1Spawner(5, 1));
                ListEnemySpawner.Add(new Plane2Spawner(7.5, 4));
                ListEnemySpawner.Add(new Plane3Spawner(10, 10));
            }
            else if (SuperTank2.Difficulty == DifficultyChoices.Hard)
            {
                ListEnemySpawner.Add(new Plane1Spawner(4, 9));
                ListEnemySpawner.Add(new Plane2Spawner(6, 19));
                ListEnemySpawner.Add(new Plane3Spawner(8, 30));
            }
            else if (SuperTank2.Difficulty == DifficultyChoices.Expert)
            {
                ListEnemySpawner.Add(new Plane1Spawner(2, 16));
                ListEnemySpawner.Add(new Plane2Spawner(4, 34));
                ListEnemySpawner.Add(new Plane3Spawner(5, 55));
            }

            Background2D           = new AnimationScreen.AnimationBackground2D("Backgrounds 2D/Super Tank/Level 1", Content, GraphicsDevice);
            Background2D.MoveSpeed = new Vector3(5, 0, 0);

            BackgroundMusic = new FMODSound(FMODSystem, "Content/Maps/BGM/BGM_Level1.mp3");
            BackgroundMusic.SetLoop(true);
            BackgroundMusic.PlayAsBGM();

            ActiveBoss = new Boss1();
            ActiveBoss.Load(Content);
            ActiveBoss.Resist = ActiveBoss.MaxResist;
        }
Exemple #2
0
        public override void Load()
        {
            base.Load();

            if (SuperTank2.Difficulty == DifficultyChoices.Normal)
            {
                ListEnemySpawner.Add(new Plane1Spawner(50, 1));
                ListEnemySpawner.Add(new Plane2Spawner(75, 4));
                ListEnemySpawner.Add(new Plane3Spawner(100, 10));
                ListEnemySpawner.Add(new Plane4Spawner(100, 15));
            }
            else if (SuperTank2.Difficulty == DifficultyChoices.Hard)
            {
                ListEnemySpawner.Add(new Plane1Spawner(40, 9));
                ListEnemySpawner.Add(new Plane2Spawner(60, 19));
                ListEnemySpawner.Add(new Plane3Spawner(60, 30));
                ListEnemySpawner.Add(new Plane4Spawner(60, 35));
            }
            else if (SuperTank2.Difficulty == DifficultyChoices.Expert)
            {
                ListEnemySpawner.Add(new Plane1Spawner(20, 16));
                ListEnemySpawner.Add(new Plane2Spawner(40, 34));
                ListEnemySpawner.Add(new Plane3Spawner(40, 55));
                ListEnemySpawner.Add(new Plane4Spawner(40, 65));
            }

            Background2D           = new AnimationScreen.AnimationBackground2D("Backgrounds 2D/Super Tank/Level 2", Content, GraphicsDevice);
            Background2D.MoveSpeed = new Vector3(5, 0, 0);

            BackgroundMusic = new FMODSound(FMODSystem, "Content/Maps/BGM/BGM_SeasideBase.mp3");
            BackgroundMusic.SetLoop(true);
            BackgroundMusic.PlayAsBGM();

            ActiveBoss = new Boss2(new Vector2(1128, 75));
            ActiveBoss.Load(Content);
            ActiveBoss.Resist = ActiveBoss.MaxResist;

            sprBat1 = Content.Load <Texture2D>("Backgrounds/Niveau 2/Bat1");
            sprBat2 = Content.Load <Texture2D>("Backgrounds/Niveau 2/Bat2");
            sprBat3 = Content.Load <Texture2D>("Backgrounds/Niveau 2/Bat3");
            sprBat4 = Content.Load <Texture2D>("Backgrounds/Niveau 2/Bat4");
            sprBat5 = Content.Load <Texture2D>("Backgrounds/Niveau 2/Bat5");
            sprBat6 = Content.Load <Texture2D>("Backgrounds/Niveau 2/Bat6");
        }