Exemple #1
0
        public void LoadContent()
        {
            soldier = new Soldier(TextureManager.Soldier,
                                  TextureManager.HealthBar,
                                  soldier.EnemyPos);
            commando = new Commando(TextureManager.Commando,
                                    TextureManager.HealthBar,
                                    commando.EnemyPos);

            MediaPlayer.IsRepeating = true;
            MediaPlayer.Volume      = 0.8f;
        }
        public static void SpawnEnemies()
        {
            if (!LevelManager.SpawnC)
            {
                Soldier soldier = new Soldier(TextureManager.Soldier,
                                              TextureManager.HealthBar,
                                              Vector2.Zero);

                Constants.EnemyList.Add(soldier);
            }
            if (LevelManager.SpawnC)
            {
                Commando commando = new Commando(TextureManager.Commando,
                                                 TextureManager.HealthBar,
                                                 Vector2.Zero);

                Constants.EnemyList.Add(commando);
            }
        }