/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { this.spriteBatch = new SpriteBatch(this.GraphicsDevice); this.gameSettings = GameSettings.Load(); this.notificationManager = NotificationManager.Initialize(this.Content, this.spriteBatch, this.screenDimensions); AudioManager.InitializeAndLoad(this.Content); PositionInformer.Initialize(this.Content, new Vector2(this.screenDimensions.X / 2.0f, this.screenDimensions.Y / 2.5f), new Vector2(this.screenDimensions.X / 6.0f), 75, true); this.menuManager.InitializeAndLoad(this.spriteBatch, this.Content, this.gameSettings); this.inputManager.InitializeSpeechEngine(this.menuManager.GetAllSelectableNames()); this.handSprite.InitializeAndLoad(this.spriteBatch, this.Content, ContentLocations.HandIcon); this.headsUpDisplay.InitializeAndLoad(this.spriteBatch, this.Content); EntitySettingsLoader.LoadEntitySettings(this.Content); this.levelManager.LoadContent(this.Content, this.spriteBatch); this.levelEditor.LoadContent(this.spriteBatch, this.Content); this.levelEditor.LevelsCreated = this.gameSettings.TotalCustomLevels; if (SticKart.DisplayColourStream) { this.colourStreamRenderer = new ColourStreamRenderer(this.Content, this.GraphicsDevice); this.colourStreamDisplayArea = new Rectangle(5 * ((int)this.screenDimensions.X / 6), 2 * ((int)this.screenDimensions.Y / 3), (int)this.screenDimensions.X / 6, (int)this.screenDimensions.Y / 3); } AudioManager.PlayBackgroundMusic(this.gameState == GameState.InGame); }