Exemplo n.º 1
0
 public void scoreboard()
 {
     Console.Clear();
     Header();
     Console.WriteLine("    Press any key to go back");
     Scoreboard.load();
     while (true)
     {
         if (Console.KeyAvailable)
         {
             MainMenu();
         }
     }
 }
Exemplo n.º 2
0
        void _InitScoreboard()
        {
            _Ui_Scoreboard = new Scoreboard(
                new List <DataArea.Item>(),
                _Color_Main,
                _Color_Main,
                "Scoreboard",
                10 + _Size_WidthInstructions + 10 + _Size_WidthGameBox + 10,
                _Size_HeightMenu + 10,
                _Size_WidthScoreboard,
                _Size_HeightInitial
                );

            _ReadScoreboard("./scoreboard.csv");
        }
Exemplo n.º 3
0
        //Instantiates each point in game board border and all scoreboards

        public void createBoard()
        {
            for (int i = start.Y; i <= start.Y + height; i++)
            {
                for (int j = start.X; j <= start.X + width; j++)
                {
                    if (i == start.Y || i == start.Y + height)
                    {
                        borders.Add(new Point(j, i));
                    }
                    else if (j == start.X || j == start.X + width)
                    {
                        borders.Add(new Point(j, i));
                    }
                }
            }

            score          = new Scoreboard(7, 14, Start.X + Width + scoreBoardOffsetX, Start.Y, color, ConsoleColor.Magenta, "Score:");
            lines          = new Scoreboard(7, 14, Start.X + Width + scoreBoardOffsetX, Start.Y + score.Height + scoreBoardYMargin, color, ConsoleColor.Cyan, "Lines:");
            level          = new Scoreboard(7, 14, Start.X + Width + scoreBoardOffsetX, Start.Y + score.Height + lines.Height + scoreBoardYMargin * 2, color, ConsoleColor.Yellow, "Level:");
            next           = new Nextboard(10 + Block.Height, 32, Start.X + Width + scoreBoardOffsetX * 2 + score.Width, Start.Y, color, ConsoleColor.Blue, "Next:");
            highScoreBoard = new HighScoreBoard(14, 32, Start.X + Width + scoreBoardOffsetX * 2 + score.Width, Start.Y + next.Height + scoreBoardYMargin - 1, color, ConsoleColor.Green, "HighScores:");
        }