public static void timer()
        {
            Console.WriteLine($"{currentTime}");
            Thread.Sleep(500);
            currentTime++;

            if (currentTime >= maxTime)
            {
                targetHit.HitLoss();
            }

            RandomNumAndCursorTracking.CursorTracking();
        }
Exemple #2
0
        public static void start()
        {
            DataCreateCheck.DataCheck();     //makes sure data.txt is there
            ScorePrint.lastScore();
            PlayerName.playerName();         //Gets and prints player name
            TimerAndDifficulty.Difficulty(); //decide how much time you get
            HotColdDificulty.Difficulty();   //decide how close you have to be
            Console.WriteLine("Hit enter when you are ready to start.");
            Console.ReadLine();
            RandomNumAndCursorTracking.randomNum(); //gets random number
            TimerAndDifficulty.timer();             //starts main part of game

            PrintScorePlayAgain.OutputScore();      //sends score to data.txt
            PrintScorePlayAgain.PlayAgain();        //asks player to play again
        }