Exemplo n.º 1
0
        public ScorePage(double scoreNumber) : base(GetAssets.GetCorrectDeathPage(scoreNumber))
        {
            SetScaleXY(MyGame.OldX() / width, MyGame.OldY() / height);
            TextBox score = new TextBox(game.width, game.height, 0, 0);

            AddChild(score);
            score.SetText("your score: " + scoreNumber, MyGame.OldX() / 2.5f, MyGame.OldY() * 1.7f / 2.5f);
        }