Example #1
0
        public IP_BattleMapState Update(P_BattleMap battlemap, MyInput input)
        {
            Random       rng    = new Random();
            int          swoosh = rng.Next(1, 11);
            ConsoleColor foo    = (ConsoleColor)rng.Next(0, Enum.GetNames(typeof(ConsoleColor)).Length - 1);
            ConsoleColor bar    = (ConsoleColor)rng.Next(0, Enum.GetNames(typeof(ConsoleColor)).Length - 1);
            ConsoleColor HECKb  = (ConsoleColor)rng.Next(0, Enum.GetNames(typeof(ConsoleColor)).Length - 1);
            ConsoleColor HECKf  = (ConsoleColor)rng.Next(0, Enum.GetNames(typeof(ConsoleColor)).Length - 1);

            Console.BackgroundColor = foo;
            Console.ForegroundColor = bar;
            Console.Clear();
            Console.WriteLine("Game Over.");
            switch (swoosh)
            {
            case 1:
                Console.WriteLine("You're winner!!!!!!");
                break;

            case 2:
                Console.WriteLine("Congrats on not breaking shit");
                break;

            case 3:
                Console.WriteLine("This took an actual month to make, F**K.");
                break;

            case 4:
                Console.WriteLine("You caught AIDS and died. The End.");
                break;

            case 5:
                Console.WriteLine("You probably had better things to do than this.");
                break;

            case 6:
                Console.WriteLine("heck.");
                break;

            case 7:
                Console.WriteLine("There's 10 of these messages, collect them all!");
                break;

            case 8:
                Console.WriteLine("Congrats on winning! A random file on your computer was just deleted in celebration.");
                break;

            case 9:
                Console.WriteLine("your the best");
                break;

            case 10:
                Console.WriteLine("i'd put a big furry ascii butt here to annoy you but that would take a lot of effort");
                break;
            }
            P_Globals.TimesPlayed++;
            switch (P_Globals.TimesPlayed)
            {
            case 4:
                Console.WriteLine("Stop.");
                break;

            case 5:
                Console.WriteLine("Piss off.");
                break;

            case 6:
                Console.WriteLine("Nothing cool here.");
                break;

            case 7:
                Console.WriteLine("I'm impressed nothing's broke yet.");
                break;

            case 8:
                Console.WriteLine("Because if it did, you'll have to sit through these again...");
                break;

            case 9:
                Console.WriteLine("Assuming you're playing now, just to see what I write next.");
                break;

            case 10:
                Console.WriteLine("If you're that eager to read what I write, you know, you could just @ me on Discord...");
                break;

            case 11:
                Console.WriteLine("Last unique message. It goes back to just reciting a number, now.");
                break;

            default:
                Console.WriteLine("You've played this {0} times.", P_Globals.TimesPlayed);
                break;
            }
            Console.ReadKey(true);
            P_MainMenu what = new P_MainMenu(battlemap.Renderer, battlemap.Updater);

            what.AcceptUpdater(battlemap.Updater);
            what.AcceptP_Render(battlemap.Renderer);
            for (int i = 0; i < 666; i++)
            {
                System.Threading.Thread.Sleep(3);
                if (i % 3 == 0)
                {
                    if (i % 5 == 0)
                    {
                        Console.Write("\n".PadRight(rng.Next(0, P_Const.CONSOLE_WIDTH - 4)));
                        Console.BackgroundColor = HECKb;
                        Console.ForegroundColor = HECKf;
                        Console.Write("HECK");
                        Console.BackgroundColor = foo;
                        Console.ForegroundColor = bar;
                        continue;
                    }
                    Console.WriteLine("bark".PadLeft(rng.Next(0, P_Const.CONSOLE_WIDTH)));
                    continue;
                }
                if (i % 5 == 0)
                {
                    Console.WriteLine("bork".PadLeft(rng.Next(0, P_Const.CONSOLE_WIDTH)));
                    continue;
                }
                Console.WriteLine(+i);
            }
            Console.BackgroundColor = P_Const.DefaultBColor;
            Console.ForegroundColor = P_Const.DefaultFColor;
            Console.Clear();
            what.Start();
            battlemap.Kill();
            return(null);
        }
 public P_MainMenuRenderComponent(P_MainMenu mainmenu)
 {
 }