public AboutScene(Game game, SpriteBatch spriteBatch, Texture2D menuBackground) : base(game) { specialFont = game.Content.Load <SpriteFont>("Fonts/SpecialFont"); title = new StringComponent(game, spriteBatch, specialFont, Vector2.Zero, "", Color.White); title.Message = "PROG 2370\nGame Programming with Data Structure\n"; title.Position = new Vector2(Shared.stage.X / 5, Shared.stage.Y / 4); this.Components.Add(title); creators = new StringComponent(game, spriteBatch, specialFont, Vector2.Zero, "", Color.White); creators.Message = "\nCreated by\n - Ezatullah Rafie \n - Keum Ji Kim"; creators.Position = new Vector2(Shared.stage.X / 5, Shared.stage.Y * 3 / 5); this.Components.Add(creators); this.spriteBatch = spriteBatch; this.menuBackground = menuBackground; }
public HighScoreScene(Game game, SpriteBatch spriteBatch, Texture2D menuBackground) : base(game) { this.spriteBatch = spriteBatch; fontHigh = game.Content.Load <SpriteFont>("Fonts/HighlightFont"); for (int i = 0; i < 5; i++) { temp += (i + 1).ToString(); highScore[i] = new StringComponent(game, spriteBatch, fontHigh, new Vector2(100, 200 + 100 * i), "", Color.Yellow); //highScore[i].Message = $"{i+1} - {Shared.playerArr[i]} : {Shared.scoreArr[i]} \n"; this.Components.Add(highScore[i]); } this.menuBackground = menuBackground; loadScore = ScoreManager.Load(); this.scoreFont = game.Content.Load <SpriteFont>("Fonts/RegularFont"); //playScene = new PlayScene(game, spriteBatch, song, background, 1); //if (playScene.IsOver == true) //{ // this.score = playScene.Score; //} }