示例#1
0
 static void Main(string[] args)
 {
     Console.Title        = "Cat Your Own Adventure";
     Console.WindowHeight = 50;
     Console.WindowWidth  = 140;
     TitleScreen.StartGame();
     Choices.Choice1();
     Choices.Choice2();
     Choices.Choice3();
     Choices.Choice4();
     Choices.Choice5();
     Choices.Choice6();
     Choices.Choice7();
 }
示例#2
0
        public static void NewGame()
        {
            Console.WriteLine("Would you like to try another of your 9 lives?".Pastel(Color.FromArgb(209, 85, 19)));
            Console.WriteLine("Press 'Y' to have another go, Press 'N' to quit.".Pastel(Color.FromArgb(9, 176, 148)));
            string newGame = Console.ReadLine().ToUpper();

            switch (newGame)
            {
            case "Y":
            case "YES":
                TitleScreen.StartGame();
                break;

            case "N":
            case "NO":
                Environment.Exit(0);
                break;

            default:
                Console.WriteLine("Sorry, did you say something?");
                NewGame();
                break;
            }
        }