Esempio n. 1
0
        /// <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>();
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new Game class.
 /// </summary>
 protected Game()
 {
     GameComponentManager = new GameComponentManager();
 }
Esempio n. 3
0
 protected BaseScreen()
 {
     Components = new GameComponentManager(BugsGame.Instance);
 }
Esempio n. 4
0
 protected BaseScreen()
 {
     Components = new GameComponentManager(BugsGame.Instance);
 }