Beispiel #1
0
 protected override void Initialize()
 {
     MainMenu = new MainMenu();
     MainMenu.Initialise(Content, graphics, this);
     LoseMenu = new LoseMenu();
     LoseMenu.Initialise(Content, this, graphics);
     WinMenu = new WinMenu();
     WinMenu.Initialise(Content, this, graphics);
     ChampionMenu = new ChampionMenu();
     ChampionMenu.Initialise(Content, this, graphics);
     InPlayMenu = new InPlayMenu();
     InPlayMenu.Initialise(Content, this, graphics);
     GameState           = 1;
     Points              = 0;
     RunThroughTheJungle = Content.Load <Song>("RunThroughTheJungle");
     SuzieQ              = Content.Load <Song>("SuzieQ");
     CurrentSong         = RunThroughTheJungle;
     SongDuration        = (float)RunThroughTheJungle.Duration.TotalSeconds;
     CurrentSongTime     = 0f;
     SongStarted         = true;
     MediaPlayer.Volume  = 0.1f;
     base.Initialize();
 }