示例#1
0
        private void Score()
        {
            lblScore = new MyLabel(
                "lblHighScore", $"Score: {game.ReturnScore()}",
                Color.Transparent, Color.GhostWhite,
                new Point(0, 0),
                MyFont.Font(MyStrings.fontPath, 30F)
                );

            lblScore.Location = new Point(0, Height - (lblScore.Height * 2));
            Controls.Add(lblScore);
        }
示例#2
0
        private void PixelMemory()
        {
            lblPixelMemory = new MyLabel(
                "lblPixelMemory", "Pixel Memory",
                Color.Transparent, Color.GhostWhite,
                new Point(0, 0),
                MyFont.Font(MyStrings.fontPath, 35F)
                );

            lblPixelMemory.Location = new Point((Width / 2) - 125,
                                                ((Height - lblPixelMemory.Height) / 2) - 150);

            Controls.Add(lblPixelMemory);
        }
示例#3
0
        private void Attacks()
        {
            lblAttacks = new MyLabel(
                "lblHighScore", $"Attacks: {game.Attacks}",
                Color.Transparent, Color.GhostWhite,
                new Point(0, 0),
                MyFont.Font(MyStrings.fontPath, 30F)
                );

            lblAttacks.Location =
                new Point((Width - 185), Height - (lblAttacks.Height * 2));

            Controls.Add(lblAttacks);
        }
示例#4
0
        private void HighScore()
        {
            foreach (Player player in SQLiteDataAccess.SelectHighScore())
            {
                lblHighScore = new MyLabel(
                    "lblHighScore", $"High Score: {player.HighScore} - {player.NamePlayer}",
                    Color.Transparent, Color.GhostWhite,
                    new Point(0, 0),
                    MyFont.Font(MyStrings.fontPath, 30F)
                    );

                lblHighScore.Location = new Point(0, Height - (lblHighScore.Height * 2));
            }

            Controls.Add(lblHighScore);
        }