示例#1
0
        static void Main(string[] cmdLineArgs)
        {
            if (cmdLineArgs.Length > 0)
            {
                Console.WriteLine("ARGS: {0}\n", cmdLineArgs);
            }


            Console.CursorVisible = false;
            SetCol(ConsoleColor.Blue);


            Thread FadeInThread = new Thread(() => Sounds.FadeIn("Despacito.wav"));

            FadeInThread.Start();

            Thread TitleTextCrawlThread = new Thread(() => TitleTextCrawl("Super Epic RPG (tm)"));

            TitleTextCrawlThread.Start();

            TextCrawl("ConsoleRPG -- The survival horror game of losing your mother in Sainsbury's");
            TextCrawl("(c) 2019 Nextracer1 inc. All rights reserved.\n\nWARNING: Some mild flashing lights.");
            Sleep(5000);

            Sounds.FadeOut();
            Sounds.FadeIn("Menu.wav");

            Menu();

            Console.Clear();

            TextCrawl("What is your name? ~~>>> ", 50, false);
            Globals.PlayerName = Console.ReadLine();
            TextCrawl("Noice.");

            TextCrawl("Skip tutoiral and prologue? y/n ~~>>> ", 50, false);

            if (Console.ReadLine().ToLower() == "y")
            {
                TextCrawl("You're gonna have to do it anyway cause I've not made the actual game yet :D");
                Sleep(1000);
                Tutorial();
            }

            else
            {
                Tutorial();
            }
        }
示例#2
0
        public static void Tutorial()
        {
            Thread AnotherFadeOutThread = new Thread(() => Sounds.FadeOut());

            AnotherFadeOutThread.Start();

            Console.Clear();

            SetCol(ConsoleColor.Cyan);

            SetCol(ConsoleColor.White, "back");
            Sleep(1000);
            SetCol(ConsoleColor.Gray, "back");
            Sleep(1000);
            SetCol(ConsoleColor.DarkGray, "back");
            Sleep(1000);
            SetCol(ConsoleColor.Black, "back");

            Sounds.Play("ShopAmbience.wav");
            Sleep(5000);



            TextCrawl("WADDLE, " + Globals.PlayerName);
            Sleep(3000);
            TextCrawl("Sainsbury's, some generic town name");
            Sleep(3000);
            TextCrawl("16:31 -- SATURDAY");

            Sleep(3000);

            Console.Clear();

            Console.WriteLine("WADDLE, " + Globals.PlayerName + "\nSainsbury's, some generic town name\n16:32 -- SATURDAY");

            Sleep(2000);

            ReverseTextCrawl("WADDLE " + Globals.PlayerName + "\nSainsbury's, some generic town name\n16:32");

            Sleep(3000);

            TextCrawl(Globals.PlayerName + "?");
            Sleep(1000);
            Console.WriteLine("(press any key to continue dialogue)");

            Pause();

            TextCrawl("\nYOU: Yeah?");
            Pause();
            TextCrawl("MUM: Can you get that can over there?");
            Pause();
            TextCrawl("YOU: Ok.");
            Pause();

            DisplayNewObjective("Get the can using the command 'get can'");



            string brief = "--------------------\n|=---FOOD ISLE---=|\nThere is a can of soup in front of you ('can'). An employee is standing next to it.\n\nAll directions are blocked as your mum is watching over you.\n\nITEMS: ";

            // Adding each of the player's items to the brief
            foreach (string item in Globals.Items)
            {
                brief += item + ", ";
            }

            brief += "\n\nOBJECTIVE: " + Globals.Objective + "\n--------------------";



            Console.WriteLine(brief);

            Sleep(5000);
            SetCol(ConsoleColor.Green);

            TextCrawl("\n^^^ That is a brief.\nIt is info about an area that is displayed when you enter it.");
            Sleep(2000);
            TextCrawl("A brief will say what directions other areas are in, and you can visit these areas with 'n' for north, 's' for south and so on.");
            Sleep(2000);
            TextCrawl("It will also say what enemies are nearby - you can attack them with 'attack.'");
            Sleep(2000);
            TextCrawl("You can see the brief at any time by typing 'brief'.");
            Sleep(4000);
            TextCrawl("\n\nPick up the can with the command 'get'. The ID of the item, the thing to type to pick it up, is displayed in the brief in brackets.");
            Sleep(2000);

            while (true)
            {
                SetCol(ConsoleColor.Blue);
                TextCrawl("\n~~>>> ", 50, false);
                SetCol(ConsoleColor.Cyan);

                string action = Console.ReadLine();

                if (action.ToLower() == "brief")
                {
                    SetCol(ConsoleColor.Green);
                    Console.WriteLine(brief);
                    SetCol(ConsoleColor.Cyan);
                }

                else if (action.ToLower() == "attack")
                {
                    TextCrawl("There are no enemies to attack.");
                }

                else if (action.ToLower() == "n" ||
                         action.ToLower() == "e" ||
                         action.ToLower() == "s" ||
                         action.ToLower() == "w")
                {
                    TextCrawl("All directions are blocked as your mum is watching over you.");
                }

                else if (action.ToLower() == "get can")
                {
                    break;
                }
            }

            Console.Clear();

            SetCol(ConsoleColor.Magenta);
            TextCrawl("Objective completed.");
            SetCol(ConsoleColor.Cyan);

            TextCrawl("You walk over and pick up the can.");
            Pause();
            TextCrawl("???: OI!");
            Pause();
            TextCrawl("You turn around to the face of an angry employee.");
            Pause();

            Sounds.Play("HeckinSoup.wav");

            TextCrawl("EMPLOYEE: That's me heckin' soup!");
            Pause();
            TextCrawl("Mum jumps to your defense.");
            Pause();
            TextCrawl("MUM: Sorry, we thought that soup was on sale...");
            Pause();
            TextCrawl("EMPLOYEE: You took me heckin' soup!");
            Pause();
            TextCrawl("YOU: But--");
            TextCrawl("EMPLOYEE: Security! Get me security in the food isle!");
            Pause();
            TextCrawl("EMPLOYEE RADIO: On my way.");
            Pause();
            TextCrawl("MUM: " + Globals.PlayerName + ", take the employee. I'll deal with the security.");
            Pause();

            TutorialEncounter();
        }