Exemple #1
0
        public void LoadContent()
        {
            _boids.LoadContent();
            switch (_waveNumber)
            {
            case 1:
                Global.EnemyColor        = Color.LightGreen;
                Global.EnemyFighterColor = Color.LightGreen;

                Global.EnemyFighterHealth    = 10;
                Global.EnemyFighterDamage    = 0;
                Global.EnemyFighterKillMoney = 2000;

                Global.EnemyFighter2Health    = 10;
                Global.EnemyFighter2Damage    = 0;
                Global.EnemyFighter2KillMoney = 2000;

                Global.EnemyFighter3Health    = 10;
                Global.EnemyFighter3Damage    = 0;
                Global.EnemyFighter3KillMoney = 2000;

                Global.EnemyBomberHealth    = 10;
                Global.EnemyBomberDamage    = 0;
                Global.EnemyBomberKillMoney = 2000;

                Global.EnemyBomber2Health    = 10;
                Global.EnemyBomber2Damage    = 0;
                Global.EnemyBomber2KillMoney = 2000;


                _boids.addBoid(new Vector3(150, 0, 50), Boids.EnemyType.Fighter);
                _boids.addBoid(new Vector3(250, 0, 50), Boids.EnemyType.Fighter);
                _boids.addBoid(new Vector3(350, 0, 50), Boids.EnemyType.Fighter);

                _boids.addBoid(new Vector3(150, 0, -50), Boids.EnemyType.Bomber2);
                _boids.addBoid(new Vector3(250, 0, -50), Boids.EnemyType.Fighter2);
                _boids.addBoid(new Vector3(350, 0, -50), Boids.EnemyType.Bomber2);

                _boids.addBoid(new Vector3(150, 0, -150), Boids.EnemyType.Fighter3);
                _boids.addBoid(new Vector3(250, 0, -150), Boids.EnemyType.Fighter3);
                _boids.addBoid(new Vector3(350, 0, -150), Boids.EnemyType.Fighter3);

                _boids.addBoid(new Vector3(450, 0, 25), Boids.EnemyType.Bomber);


                break;


            default:

                break;
            }
        }