Пример #1
0
    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);
    }
Пример #2
0
    //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);
    }