Exemple #1
0
        private static void Potwierdzenie1()
        {
            AnimacjaTekstu.Write("[" + Difflvls + "]" + " Jesteś pewien? Nie będziesz mógł cofnąć wyboru");
            AnimacjaTekstu.Write("<ENTER> Jestem pewien! Rozpierdolmy tę grę!");
            AnimacjaTekstu.Write("<ESC> Wolę się zastanowić..");

            ConsoleKeyInfo key = Console.ReadKey();

            switch (key.Key)
            {
            case ConsoleKey.Enter:
                Console.Clear(); Rozdział1.Początek_Wszystkiego(); break;

            case ConsoleKey.Escape:
                Console.Clear(); Difflvl(); break;

            default: AnimacjaTekstu.WriteRed("We patrz co klikasz"); Difflvl(); break;
            }
        }
Exemple #2
0
        public static void Klasy()
        {
            int prawda = 0;

            Console.WriteLine("");
            AnimacjaTekstu.Write("Wybierz swoją klasę:");
            AnimacjaTekstu.Write(">Hołod");
            AnimacjaTekstu.Write(">Programista");
            AnimacjaTekstu.Write(">PCtowiec");
            AnimacjaTekstu.Write(">WojownikCienia");
            AnimacjaTekstu.WriteGreen("Informacje na temat klas wyświetlisz korzystając z /klasy");
            do
            {
                klasa = Console.ReadLine().ToUpper();
                if (klasa == "/KLASY") //klasa
                {
                    Informacje.Hołod();
                    Informacje.PCtowiec();
                    Informacje.Programista();
                    Informacje.WojownikCienia();
                }
                if (klasa == "HOŁOD")
                {
                    prawda       = 1;
                    Witalność    = 9;
                    Siła         = -4;
                    Inteligencja = -4;
                    Zręczność    = -5;
                    Console.Clear();
                    Rozdział1.Demo();
                }
                if (klasa == "PROGRAMISTA")
                {
                    prawda       = 1;
                    Witalność    = -3;
                    Siła         = -4;
                    Inteligencja = 6;
                    Zręczność    = 3;
                    Console.Clear();
                    Rozdział1.Demo();
                }
                if (klasa == "PCTOWIEC")
                {
                    prawda       = 1;
                    Witalność    = 2;
                    Siła         = 3;
                    Inteligencja = 3;
                    Zręczność    = -10;
                    Console.Clear();
                    Rozdział1.Demo();
                }
                if (klasa == "WOJOWNIKCIENI")
                {
                    prawda       = 1;
                    Witalność    = 4;
                    Siła         = 6;
                    Inteligencja = -10;
                    Zręczność    = 5;
                    Console.Clear();
                    Rozdział1.Demo();
                }
                else
                {
                    AnimacjaTekstu.WriteRed("Błąd. Spróbuj jeszcze raz.");
                }
            } while (prawda == 0);
            prawda = 0;
        }