/// <summary> /// Loads the content. /// </summary> public override void OnLoadContent() { GameComponentManager.Add(SceneManager); GameComponentManager.Add(GameMessage.Instance); GameMessage.Instance.QueueMessage(string.Format("Welcome {0}.", Environment.UserName)); var webClient = new WebClient(); webClient.DownloadStringCompleted += DownloadStringCompleted; webClient.DownloadStringAsync(new Uri("http://games.thucommix.de/xplane/cv.txt")); Content.Load <Sound>("laserFire.wav"); Content.Load <Sound>("explosion.wav"); Content.Load <Sound>("menuMusic.mp3"); Content.Load <Sound>("gameMusic.mp3"); AudioManager.SoundEffectGroups.Add(new SoundEffectGroup()); SceneManager.AddScene(new GameScene()); SceneManager.AddScene(new MenuScene()); SceneManager.AddScene(new IntroScene()); SceneManager.AddScene(new EndScene()); SceneManager.ActiveScene = SceneManager.Get <IntroScene>(); }
/// <summary> /// Initializes a new Game class. /// </summary> protected Game() { GameComponentManager = new GameComponentManager(); }
protected BaseScreen() { Components = new GameComponentManager(BugsGame.Instance); }