/// <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); }
/// <summary> /// Add a layer /// </summary> /// <returns></returns> public Layer AddLayer() { Layer layer = new Layer(_content); _layers.Add(layer); return layer; }