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

            switch (choice7)
            {
                case "LIE":
                    Console.WriteLine("\nYou close your eyes and breath deep of the sun toasted grass.");
                    Console.WriteLine("The warm sun is soothing after your tiring day. Maybe you'll just stay here a while.");
                    Console.WriteLine("\n\nThe End");
                    Console.WriteLine("Press 'Enter' to continue.".Pastel(Color.FromArgb(9, 176, 148)));
                    Console.ReadLine();
                    TitleScreen.TiredEnd();
                    break;

                case "LISTEN":
                    Console.WriteLine("\nYou slink through the grass, listening carefully and stalking the rustling noises you can hear.");
                    Console.WriteLine("Ahead of you there is a mouse. 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 "RUN": //a repeat of the RUN in the option before - can this be streamlined?
                    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 "NOISES": //use NOISE from choice5?

                    break;

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

            switch (choice5)
            {
                case "RUN":
                    Console.WriteLine("\nYou dodge and weave through the field of bulls. They don't even see you until it's too late and you're at the next fence bordering 2 fields. You're the swiftest, cleverest cat that ever there was.");
                    Console.WriteLine($"There is a field full of temptingly long {"GRASS".Pastel(Color.FromArgb(207, 153, 6))} or another which smells earthy and has strange slow, {"FLUFFY".Pastel(Color.FromArgb(207, 153, 6))} creatures in iot. Which do you choose?");
                    break;

                case "BACK":
                    Console.WriteLine("\nYou back off from the angry looking bulls. It's a wise move.");
                    //link to EDGE choice4
                    break;

                case "HORNS": //link to SNEAK choice4
                    
                    break;

                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 "SHED": //I need this option to just call the first SHED Choice2 somehow so that it loops

                    break;

                case "HOUSE": //this option needs to call the HOUSE choice in Choice1
            
                    break;

                case "NOISE":
                    Console.WriteLine("\nSlowly stalking to where the skittering noise is coming from you spot a tiny ball of fur and whiskers. It's just what your human needs, they're rubbish at catching their own food!";
                    Console.WriteLine("You line up the perfect pounce... and jump!");
                    Console.WriteLine("\n\nThe End");
                    Console.WriteLine("Press 'Enter' to continue.".Pastel(Color.FromArgb(9, 176, 148)));
                    Console.ReadLine();
                    TitleScreen.MouseEnd();
                    break;

                case "SMELL":
                    Console.WriteLine("\nYou jump up onto the worktop and find you've landed on a freshly painted piece of wood. It smells a lot stronger up here and it's unpleasantly sticky.");
                    Console.WriteLine($"Do you lie down to try and {"CLEAN".Pastel(Color.FromArgb(207, 153, 6))} your paws or do you jump {"DOWN".Pastel(Color.FromArgb(207, 153, 6))} from this terrible place?");
                    break;

                case "LEAVE":
                    Console.WriteLine("\nYou look at teh lump of soggy cardboard in discust and wander away. That's someone elses mess to deal with.");
                    Console.WriteLine($"You head outside.");
                    //link to garden choice1?
                    break;

                case "HIDE":
                    Console.WriteLine("\nYou find a good spot inside the sofa to hide. They wont find you here for ages and by then they'll be worried something terrible has happened to you so you wont get told off \nBrilliant.");
                    Console.WriteLine("You get comfy and fall asleep");
                    Console.WriteLine("\n\nThe End");
                    Console.WriteLine("Press 'Enter' to continue.".Pastel(Color.FromArgb(9, 176, 148)));
                    Console.ReadLine();
                    TitleScreen.TiredEnd();
                    break;

                case "PLAY":
                    Console.WriteLine("\nYou are imbued with the energy taht is usually reserved for sprinting around the house at 1am. You decide to explore the garden");
                    //link to GARDEN option in choice1

                    break;

                case "SLEEP":
                    Console.WriteLine("\nThere is a shaft of sunlight coming through the glass and, maybe it's just because you're off your face on catnip, but it looks truly magical.");
                    Console.WriteLine("Curling up you can smell the sun on flower meadows and hear the soft rustle of rodents in the undergrowth as you drift off to sleep");
                    Console.WriteLine("\n\nThe End");
                    Console.WriteLine("Press 'Enter' to continue.".Pastel(Color.FromArgb(9, 176, 148)));
                    Console.ReadLine();
                    TitleScreen.SunEnd();
                    break;

                default:
                    Console.WriteLine("\nThat isn't one of the options, try again!");
                    Choice5();
                    break;
            }
        }
示例#3
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;
            }
        }