Пример #1
0
        public void R4()
        {
            Time = 300;//下一波攻擊時間
            for (int i = 0; i < 12; i++)
            {
                MONSTER11 MMM = new MONSTER11(new Vector2(100, -60 * i));
                MMM.N2     = 120;
                MMM.ADD_X2 = 2.5f;
                MMM.ADD_Y2 = 0;

                MMM.N3     = 85;
                MMM.ADD_X3 = 0;
                MMM.ADD_Y3 = -2.5f;

                MMM.N4     = 85;
                MMM.ADD_X4 = -2.5f;
                MMM.ADD_Y4 = 0;


                MMM.N5     = 500;
                MMM.ADD_X5 = 0;
                MMM.ADD_Y5 = 2.5f;

                BOX.Add(MMM);
            }
        }
Пример #2
0
        public void R3()
        {
            Time = 300;//下一波攻擊時間
            MakeMonster("C1", new MONSTER3(new Vector2(0, 0)), 3);



            for (int i = 0; i < 10; i++)
            {
                MONSTER11 MMM = new MONSTER11(new Vector2(430, -60 * i));
                MMM.Yn = 250;

                MMM.N2     = 120;
                MMM.ADD_X2 = -1f;
                MMM.ADD_Y2 = 2f;

                MMM.N3     = 500;
                MMM.ADD_X3 = 0f;
                MMM.ADD_Y3 = 2f;

                BOX.Add(MMM);
            }


            MakeMonster("B1", new MONSTER3(new Vector2(0, 100)), 3);
            MakeMonster("B1", new MONSTER7(new Vector2(200, 100)), 3);
        }
Пример #3
0
        public void R3()
        {
            Time = 500;//下一波攻擊時間
            MakeMonster("A1", new MONSTER41(new Vector2(100, 100)), 3 + GamePage.HERO_S);

            MakeMonster("A2", new MONSTER51(new Vector2(50, 250)), 3);
            MakeMonster("A2", new MONSTER5(new Vector2(400, 250)), 3);

            MakeMonster("A3", new MONSTER7(new Vector2(100, 0)), 3 + GamePage.HERO_S);

            for (int i = 0; i < 10; i++)
            {
                MONSTER11 MMM = new MONSTER11(new Vector2(430, -60 * i));
                MMM.Yn = 250;

                MMM.N2 = 200;
                MMM.ADD_X2 = -1f;
                MMM.ADD_Y2 = 2f;

                MMM.N3 = 500;
                MMM.ADD_X3 = 0f;
                MMM.ADD_Y3 = 2f;

                BOX.Add(MMM);
            }

            for (int i = 0; i < 10; i++)
            {
                MONSTER11 MMM = new MONSTER11(new Vector2(50, -60 * i));
                MMM.Yn = 250;

                MMM.N2 = 200;
                MMM.ADD_X2 = 1f;
                MMM.ADD_Y2 = 2f;

                MMM.N3 = 500;
                MMM.ADD_X3 = 0f;
                MMM.ADD_Y3 = 2f;

                BOX.Add(MMM);
            }
        }
Пример #4
0
        public void R1()
        {
            Time = 300;//下一波攻擊時間
            MakeMonster("A2", new MONSTER3(new Vector2(300, 300)), 3);

            for (int i = 0; i < 15; i++)
            {
                MONSTER11 MMM = new MONSTER11(new Vector2(100, -60 * i));
                MMM.Yn = 250;

                MMM.N2     = 120;
                MMM.ADD_X2 = 1f;
                MMM.ADD_Y2 = 2f;

                MMM.N3     = 500;
                MMM.ADD_X3 = 0f;
                MMM.ADD_Y3 = 2f;

                BOX.Add(MMM);
            }
        }
Пример #5
0
        public void R7()
        {
            Time = 100;//下一波攻擊時間
            MakeMonster("B1", new MONSTER31(new Vector2(0, 0)),8);


            for (int i = 0; i < 20; i++)
            {
                MONSTER11 MMM = new MONSTER11(new Vector2(240, -60 * i));
                MMM.Yn = 100;

                MMM.N2 = 150;
                MMM.ADD_X2 = 1.5f;
                MMM.ADD_Y2 = 2f;

                MMM.N3 = 500;
                MMM.ADD_X3 = -1.5f;
                MMM.ADD_Y3 = 2f;

                BOX.Add(MMM);
            }

            MakeMonster("A2", new MONSTER7(new Vector2(180, 200)), 5);
        }
Пример #6
0
        public void MakeMonster(string Ctype, MONSTER M, int Total)
        {
            MONSTER[]  mbox = new MONSTER[Total];
            TARY_GPLOC GP   = new TARY_GPLOC(Ctype, new Vector2(M.Width, M.Height), new Vector2(M.X, M.Y), Total, false);



            for (int i = 0; i < GP.COUNT(); i++)
            {
                switch (M.GetType().ToString())
                {
                case "hero.MONSTER1": mbox[i] = new MONSTER1(new Vector2(0, 0)); break;

                case "hero.MONSTER1_A": mbox[i] = new MONSTER1_A(new Vector2(0, 0)); break;

                case "hero.MONSTER1_B": mbox[i] = new MONSTER1_B(new Vector2(0, 0)); break;

                case "hero.MONSTER1_C": mbox[i] = new MONSTER1_C(new Vector2(0, 0)); break;


                case "hero.MONSTER11": mbox[i] = new MONSTER11(new Vector2(0, 0)); break;

                case "hero.MONSTER11_A": mbox[i] = new MONSTER11_A(new Vector2(0, 0)); break;

                case "hero.MONSTER11_B": mbox[i] = new MONSTER11_B(new Vector2(0, 0)); break;

                case "hero.MONSTER11_C": mbox[i] = new MONSTER11_C(new Vector2(0, 0)); break;


                case "hero.MONSTER2": mbox[i] = new MONSTER2(new Vector2(0, 0)); break;

                case "hero.MONSTER2_A": mbox[i] = new MONSTER2_A(new Vector2(0, 0)); break;

                case "hero.MONSTER2_B": mbox[i] = new MONSTER2_B(new Vector2(0, 0)); break;

                case "hero.MONSTER2_C": mbox[i] = new MONSTER2_C(new Vector2(0, 0)); break;

                case "hero.MONSTER21": mbox[i] = new MONSTER21(new Vector2(0, 0)); break;

                case "hero.MONSTER21_A": mbox[i] = new MONSTER21_A(new Vector2(0, 0)); break;

                case "hero.MONSTER21_B": mbox[i] = new MONSTER21_B(new Vector2(0, 0)); break;

                case "hero.MONSTER21_C": mbox[i] = new MONSTER21_C(new Vector2(0, 0)); break;



                case "hero.MONSTER3": mbox[i] = new MONSTER3(new Vector2(0, 0)); break;

                case "hero.MONSTER3_A": mbox[i] = new MONSTER3_A(new Vector2(0, 0)); break;

                case "hero.MONSTER3_B": mbox[i] = new MONSTER3_B(new Vector2(0, 0)); break;

                case "hero.MONSTER3_C": mbox[i] = new MONSTER3_C(new Vector2(0, 0)); break;


                case "hero.MONSTER31": mbox[i] = new MONSTER31(new Vector2(0, 0)); break;

                case "hero.MONSTER31_A": mbox[i] = new MONSTER31_A(new Vector2(0, 0)); break;

                case "hero.MONSTER31_B": mbox[i] = new MONSTER31_B(new Vector2(0, 0)); break;

                case "hero.MONSTER31_C": mbox[i] = new MONSTER31_C(new Vector2(0, 0)); break;


                case "hero.MONSTER4": mbox[i] = new MONSTER4(new Vector2(0, 0)); break;

                case "hero.MONSTER4_A": mbox[i] = new MONSTER4_A(new Vector2(0, 0)); break;

                case "hero.MONSTER4_B": mbox[i] = new MONSTER4_B(new Vector2(0, 0)); break;

                case "hero.MONSTER4_C": mbox[i] = new MONSTER4_C(new Vector2(0, 0)); break;


                case "hero.MONSTER41": mbox[i] = new MONSTER41(new Vector2(0, 0)); break;

                case "hero.MONSTER41_A": mbox[i] = new MONSTER41_A(new Vector2(0, 0)); break;

                case "hero.MONSTER41_B": mbox[i] = new MONSTER41_B(new Vector2(0, 0)); break;

                case "hero.MONSTER41_C": mbox[i] = new MONSTER41_C(new Vector2(0, 0)); break;

                case "hero.MONSTER5": mbox[i] = new MONSTER5(new Vector2(0, 0)); break;

                case "hero.MONSTER5_A": mbox[i] = new MONSTER5_A(new Vector2(0, 0)); break;

                case "hero.MONSTER5_B": mbox[i] = new MONSTER5_B(new Vector2(0, 0)); break;

                case "hero.MONSTER5_C": mbox[i] = new MONSTER5_C(new Vector2(0, 0)); break;


                case "hero.MONSTER51": mbox[i] = new MONSTER51(new Vector2(0, 0)); break;

                case "hero.MONSTER51_A": mbox[i] = new MONSTER51_A(new Vector2(0, 0)); break;

                case "hero.MONSTER51_B": mbox[i] = new MONSTER51_B(new Vector2(0, 0)); break;

                case "hero.MONSTER51_C": mbox[i] = new MONSTER51_C(new Vector2(0, 0)); break;



                case "hero.MONSTER6": mbox[i] = new MONSTER6(new Vector2(0, 0)); break;

                case "hero.MONSTER6_A": mbox[i] = new MONSTER6_A(new Vector2(0, 0)); break;

                case "hero.MONSTER6_B": mbox[i] = new MONSTER6_B(new Vector2(0, 0)); break;

                case "hero.MONSTER6_C": mbox[i] = new MONSTER6_C(new Vector2(0, 0)); break;

                case "hero.MONSTER7": mbox[i] = new MONSTER7(new Vector2(0, 0)); break;

                case "hero.MONSTER7_A": mbox[i] = new MONSTER7_A(new Vector2(0, 0)); break;

                case "hero.MONSTER7_B": mbox[i] = new MONSTER7_B(new Vector2(0, 0)); break;

                case "hero.MONSTER7_C": mbox[i] = new MONSTER7_C(new Vector2(0, 0)); break;



                case "hero.BOSS1": mbox[i] = new BOSS1(new Vector2(0, 0)); break;

                case "hero.BOSS2": mbox[i] = new BOSS2(new Vector2(0, 0)); break;

                case "hero.BOSS3": mbox[i] = new BOSS3(new Vector2(0, 0)); break;

                case "hero.BOSS4": mbox[i] = new BOSS4(new Vector2(0, 0)); break;

                case "hero.BOSS5": mbox[i] = new BOSS5(new Vector2(0, 0)); break;

                case "hero.BOSS5_G": mbox[i] = new BOSS5_G(new Vector2(0, 0)); break;

                case "hero.BOSS6": mbox[i] = new BOSS6(new Vector2(0, 0)); break;

                case "hero.BOSS7": mbox[i] = new BOSS7(new Vector2(0, 0)); break;

                case "hero.BOSS51": mbox[i] = new BOSS51(new Vector2(0, 0)); break;
                }
                mbox[i].X = GP.getLocAry[i].X;
                mbox[i].Y = GP.getLocAry[i].Y;
                BOX.Add(mbox[i]);
            }
        }