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); }
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); }
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); }
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); }