Exemple #1
0
        public static void Boss()
        {
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("坦克们正在跃跃欲试地等你挑战呢");
            Console.ReadKey();
            int i = 4;

            for (; i < 8; i++)
            {
                monster = GameRes.GetMonster(i).Clone();
                Console.Clear();
                StartBattle();
                Console.Clear();
                Console.ForegroundColor = ConsoleColor.Yellow;
                Console.WriteLine("哇兄弟nb啊你打败了第{0}个boss,后面还有{1}个boss等着你呢", i - 3, 8 - i - 1);
                Console.ReadKey();
                Console.ForegroundColor = ConsoleColor.White;
            }
            if (i == 8)
            {
                Console.Clear();
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("\n\t\t\t恭喜你,你通关了\n\t你成功地打败了蔡徐坤和乔碧萝,战胜了坦克,成为了世界的主宰\n\tbyebye");
                Console.ReadKey();
                Environment.Exit(0);
            }
        }
Exemple #2
0
        public static void Explore()
        {
            Console.Clear();
            while (true)
            {
                Program.Shuaxin_shuxing();
                Console.WriteLine("\t\t\t探险中");
                Console.SetCursorPosition(5, 5);
                Console.WriteLine("{0}", Playerrole.Instance.name);
                Console.WriteLine("\t等级:{0}", Playerrole.Instance.level);
                Console.WriteLine("\t金币:{0}", Playerrole.Instance.gold);
                Console.WriteLine("\n\n输入 1 继续探险 \n输入 0 返回主界面");
                Console.SetCursorPosition(0, 22);
                for (int i = 0; i < 79; i++)
                {
                    Console.Write("-");
                }
                Console.SetCursorPosition(0, 23);
hehe:
                string cs = Console.ReadLine();
                if (cs == "")
                {
                    goto hehe;
                }
                int n = int.Parse(cs);
                switch (n)
                {
                case 1:
                    if (Playerrole.Instance.level <= 10)
                    {
                        monster = GameRes.GetMonster(1).Clone();
                        Console.Clear();
                        StartBattle();
                    }
                    else if (Playerrole.Instance.level <= 20)
                    {
                        monster = GameRes.GetMonster(2).Clone();
                        Console.Clear();
                        StartBattle();
                    }
                    else if (Playerrole.Instance.level <= 100)
                    {
                        monster = GameRes.GetMonster(3).Clone();
                        Console.Clear();
                        StartBattle();
                    }

                    else
                    {
                        Console.WriteLine("你这么diao,怎么不去打boss???");
                    }
                    continue;

                case 0: Program.Mainui(); break;

                default:
                    goto hehe;
                }
            }
        }