Exemplo n.º 1
0
        /// <summary>
        /// Construct
        /// </summary>
        /// <param name="content"></param>
        public Level(ContentManager content)
        {
            _content = content;
            _layers = new List<Layer>();
            _plr = null;

            // Main layer
            _main = AddLayer();

            //load and play the background sound
            _bgMusic = _content.Load<Song>("Audio/Music/LightBG");
            MediaPlayer.IsRepeating = true;
            MediaPlayer.Play(_bgMusic);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Add a layer
 /// </summary>
 /// <returns></returns>
 public Layer AddLayer()
 {
     Layer layer = new Layer(_content);
     _layers.Add(layer);
     return layer;
 }