public Score() : base("assets/menu/bgmenu.png") { SetScaleXY(MyGame.OldX() / width, MyGame.OldY() / height); scores = new TextBox(game.width, game.height, 0, 0); ScoreParser sp = new ScoreParser(); hs = sp.Parse("assets/menu/highscores.xml"); AddChild(scores); }
//private List<HighScore> highScoresList = new List<HighScore> { }; public Score() : base("assets/menu/bgmenu.png") { //ScoreParser hsParser = new ScoreParser(); //HighScores highScore = hsParser.Parse("assets/menu/highscores.xml"); //string name = highScore.name; //double score = highScore.score; //int position = highScore.position; //scoreScreen = new Sprite("assets/menu/bgmenu.png"); //AddChild(scoreScreen); SetScaleXY(MyGame.OldX() / width, MyGame.OldY() / height); scores = new TextBox(game.width, game.height, 0, 0); ScoreParser sp = new ScoreParser(); hs = sp.Parse("assets/menu/highscores.xml"); AddChild(scores); }