Ejemplo n.º 1
0
        //NEEDS Writing
        void GameOver()
        {
            isPlaying = false;
            Console.Clear();
            Console.BackgroundColor = ConsoleColor.DarkRed;
            Console.WriteLine("╔══════════════════╗");
            Console.WriteLine("║    GAME OVER!    ║");
            if (board.score == 0)
            {
                Console.WriteLine("║     score: {0}     ║", board.score);
            }
            else if (board.score >= 10 && board.score < 100)
            {
                Console.WriteLine("║    score: {0}     ║", board.score);
            }
            else
            {
                Console.WriteLine("║    score: {0}    ║", board.score);
            }
            Console.WriteLine("╚══════════════════╝");
            Console.BackgroundColor = ConsoleColor.Black;
            Console.WriteLine();
            Console.WriteLine("Press any key to save and continue");
            Console.ReadKey();
            Scoreboard.save(board.score);
            Menu m = new Menu();

            m.MainMenu();
        }
Ejemplo n.º 2
0
        //generate currblock and next block. Call this at the start and everytime a collision happens

        public void start()
        {
            Menu m = new Menu();

            m.MainMenu();
        }