/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // TODO: use this.Content to load your game content here startScene = new StartScene(this, spriteBatch); this.Components.Add(startScene); gameOverScene = new GameOverScene(this, spriteBatch); this.Components.Add(gameOverScene); actionScene = new ActionScene(this, spriteBatch, gameOverScene); this.Components.Add(actionScene); howToPlayScene = new HowToPlayScene(this, spriteBatch); this.Components.Add(howToPlayScene); aboutScene = new AboutScene(this, spriteBatch); this.Components.Add(aboutScene); highestScoreScene = new HighestScoreScene(this, spriteBatch, actionScene.score); this.Components.Add(highestScoreScene); startScene.ShowScene(); }
private void DisplayHighestScoreScene() { startScene.HideScene(); highestScoreScene = new HighestScoreScene(this, spriteBatch, actionScene.score); this.Components.Add(highestScoreScene); highestScoreScene.ShowScene(); }