示例#1
0
文件: Choices.cs 项目: neoKushan/CYOA
        public static void Choice6()
        {
            string choice6 = Console.ReadLine().ToUpper();

            switch (choice6)
            {
                case "GRASS":
                    Console.WriteLine("\nBolting into the long grass you pause to catch your breath. You lie still listening to the rustling of the leaves.");
                    Console.WriteLine($"Do you {"LIE".Pastel(Color.FromArgb(207, 153, 6))} still to breathe in the sun soaked leaves or to you {"LISTEN".Pastel(Color.FromArgb(207, 153, 6))} to the rustling?");
                    break;

//can I refer to the "fluffy" case in the previous option instead of repeating it here? might need to be IF statement instead maybe?
                case "FLUFFY":
                    Console.WriteLine("\nThis field is full of sheep! And they look fun to play with. Like a big ball of wool on legs!");
                    Console.WriteLine($"Do you {"RUN".Pastel(Color.FromArgb(207, 153, 6))} at them to see what happens? Or do you {"STALK".Pastel(Color.FromArgb(207, 153, 6))} them and see what you can find out?");
                    break;

                case "RUN":
                    Console.WriteLine("\nYou bunch your muscles and run at the sheep! \nThey scatter and you have a moment of understanding for what those stupid sheepdogs see in this.");
                    Console.WriteLine("Having thoroughly terrorised the poor creatures you take your rightful spot on the only hill so that you can lie down and survey your minions.");
                    Console.WriteLine("\n\nYou fall asleep.");
                    Console.WriteLine("Press 'Enter' to continue.".Pastel(Color.FromArgb(9, 176, 148)));
                    Console.ReadLine();
                    TitleScreen.TiredEnd();
                    break;

                case "STALK":
                    Console.WriteLine("\nProwling carefully around you realise the stupid wool brains don't suspect a thing but also that there are other animals here too...");
                    Console.WriteLine($"Do you {"RUN".Pastel(Color.FromArgb(207, 153, 6))} at them or do you investigate the other {"NOISES".Pastel(Color.FromArgb(207, 153, 6))}?");
                    break;

                case "CLEAN":
                    Console.WriteLine("\nYou sit down to get this weird substance off your feet. \nThat was a mistake.");
                    Console.WriteLine("You end up covered in paint. It's matting your fur together and licking it off has made you very sick.");
                    Console.WriteLine("\n\nThis may be a trip to the groomers. And maybe even the vets!.");
                    Console.WriteLine("Press 'Enter' to continue.".Pastel(Color.FromArgb(9, 176, 148)));
                    Console.ReadLine();
                    TitleScreen.FailEnd();
                    break;

                case "DOWN":
                    Console.WriteLine("\nYou jump off the hellish worktop. This results in a neat pattern of your pawprints on the shed floor in a fetching shade of purple.");
                    Console.WriteLine("You wander around a little more, marvelling in the artwork you're able to make with such little effort before returning outside where the grass removes what is left of the paint from between your toebeans.");
                    Console.WriteLine("\n\nYou curl up in the grass, a day well spent.");
                    Console.WriteLine("Press 'Enter' to continue.".Pastel(Color.FromArgb(9, 176, 148)));
                    Console.ReadLine();
                    TitleScreen.TiredEnd();
                    break;

                default:
                    Console.WriteLine("\nThat isn't one of the options, try again!");
                    Choice6();
                    break;
            }
        }
示例#2
0
文件: Choices.cs 项目: neoKushan/CYOA
        public static void Choice3()
        {
            string choice3 = Console.ReadLine().ToUpper();

            switch (choice3)
            {
                case "RUN":
                    Console.WriteLine("\nYou set off running the rest of the way without looking both ways like a good kitty should.");
                    Console.WriteLine("You never reach the other side...");
                    Console.WriteLine("\n\nThe End");
                    Console.WriteLine("Press 'Enter' to continue.".Pastel(Color.FromArgb(9, 176, 148)));
                    Console.ReadLine();
                    TitleScreen.FailEnd();
                    break;

                case "WALK":
                    Console.WriteLine("\nYou look both ways and carefully walk the rest of the way.");
                    Console.WriteLine($"You make it to a field on the other side of the road. \nDo you {"SNEAK".Pastel(Color.FromArgb(207, 153, 6))} under the fence in front of you or do you head around the {"EDGE".Pastel(Color.FromArgb(207, 153, 6))} of the field?");
                    break;

                //lie in sun ending again - make endings into methods?
                case "LIE":
                    Console.WriteLine("\nYou lie down in the sun and fall asleep as a cat is wont to do. The sounds of tweeting birds enter your dreams and you stalk and chase them.");
                    Console.WriteLine("\n\nThe End");
                    Console.WriteLine("Press 'Enter' to continue.".Pastel(Color.FromArgb(9, 176, 148)));
                    Console.ReadLine();
                    TitleScreen.SunEnd();
                    break;

                case "BIRDS":
                    Console.WriteLine("\nYou decide to climb the nearby tree, from which you can keep a better watch for birds. Gotta protect your kingdom after all. \nYou are up quite high but from here you can see a group of birds clearly plotting something over on the shed roof. You can also see that the branches of this tree connect with another tree giving you a safe route across the road.");
                    Console.WriteLine($" Do you {"POUNCE".Pastel(Color.FromArgb(207, 153, 6))} on the unsuspecting birds? Or do you walk along the {"BRANCHES".Pastel(Color.FromArgb(207, 153, 6))} towards adventure?");
                    break;

                case "SCRATCH":
                    Console.WriteLine("\nThere's plenty of wood in here to sharpen your claws on and you leave some satisfying marks.");
                    Console.WriteLine($"Is that enough of that and you take a {"LOOK".Pastel(Color.FromArgb(207, 153, 6))} around? Or do you hunt for more {"WOOD".Pastel(Color.FromArgb(207, 153, 6))} to scratch?");
                    break;

                case "SNEAK":
                    Console.WriteLine("\nYou snoop around the toolshed and it smells metalic and warm and exiting.");
                    Console.WriteLine("Next to a box you see a small furry creature. You stop and assume the hunting position; head to the ground, ears flat and butt wiggling because your tail has a mind of it's own");
                    Console.WriteLine("\n\nYou Pounce!");
                    Console.WriteLine("Press 'Enter' to continue.".Pastel(Color.FromArgb(9, 176, 148)));
                    Console.ReadLine();
                    TitleScreen.MouseEnd();
                    break;

                case "SIT":
                    Console.WriteLine("\nIt's a cardboard box. You sit on it. Life is good. \nAs you get comfy you notice it smells AMAZING");
                    Console.WriteLine($"Do you curl up and go to {"SLEEP".Pastel(Color.FromArgb(207, 153, 6))} or does curiosity get the better of you and you {"TEAR".Pastel(Color.FromArgb(207, 153, 6))} it open after all?");
                    break;

                case "TEAR":
                    Console.WriteLine("\nYou start tearing and chewing on the box. \nInside you find something that smells AMAZING. \nIt's minty and luxurious and everything you ever wanted.");
                    Console.WriteLine($"Do you {"CHEW".Pastel(Color.FromArgb(207, 153, 6))} on the tasty cardboard more or do you dig into the box {"MORE".Pastel(Color.FromArgb(207, 153, 6))}?");
                    break;

                default:
                    Console.WriteLine("\nThat isn't one of the options, try again!");
                    Choice3();
                    break;
            }
        }