예제 #1
0
        public void R2()
        {
            Time = 100;//下一波攻擊時間


            for (int i = 0; i < 3; i++)
            {
                MONSTER11_B MMM = new MONSTER11_B(new Vector2(40 * i + 480 - 50, 750));
                MMM.Yn = 0;



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


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



                BOX.Add(MMM);
            }
        }
예제 #2
0
        public void R8()
        {
            Time = 400;//下一波攻擊時間


            //中間
            for (int i = 0; i < 30; i++)
            {
                MONSTER11_B MMM = new MONSTER11_B(new Vector2(240, -40 * i));
                MMM.Yn = 100;

                MMM.N2     = GamePage.randObj.Next(50, 200);
                MMM.ADD_X2 = (float)(GamePage.randObj.Next(-150, 150) * 0.01);
                MMM.ADD_Y2 = 2f;


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



                BOX.Add(MMM);
            }
        }
예제 #3
0
        public void R3()
        {
            Time = 300;//下一波攻擊時間
            MakeMonster("A1", new MONSTER51_B(new Vector2(20, 0)), 5);

            for (int i = 0; i < 20; i++)
            {
                MONSTER11_B MMM = new MONSTER11_B(new Vector2(380, -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);
            }
        }
예제 #4
0
        public void R6()
        {
            Time = 200;//下一波攻擊時間
            AAA.firedM2();

            MakeMonster("A1", new MONSTER41_A(new Vector2(320, 700)), 2);



            for (int i = 0; i < 12; i++)
            {
                MONSTER11_B MMM = new MONSTER11_B(new Vector2(380, -60 * i));
                MMM.Yn = 400;

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


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

                BOX.Add(MMM);
            }



            for (int i = 0; i < 12; i++)
            {
                MONSTER11_B MMM = new MONSTER11_B(new Vector2(100, -60 * i));
                MMM.Yn = 400;

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


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



                BOX.Add(MMM);
            }
        }
예제 #5
0
        public void R7()
        {
            MakeMonster("A2", new MONSTER51_B(new Vector2(200, 100)), 3);
            MakeMonster("A2", new MONSTER5_B(new Vector2(200, 200)), 3);

            Time = 350;//下一波攻擊時間
            for (int i = 0; i < 12; i++)
            {
                MONSTER11_B MMM = new MONSTER11_B(new Vector2(20, -60 * i));
                MMM.Yn = 650;

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


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

                BOX.Add(MMM);
            }



            for (int i = 0; i < 12; i++)
            {
                MONSTER11_B MMM = new MONSTER11_B(new Vector2(440, -60 * i));
                MMM.Yn = 650;


                MMM.N2     = 150;
                MMM.ADD_X2 = -2f;
                MMM.ADD_Y2 = 0f;


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


                BOX.Add(MMM);
            }
        }
예제 #6
0
        public void R7()
        {
            Time = 500;//下一波攻擊時間
            MakeMonster("B1", new MONSTER6_C(new Vector2(320, -400)), 3);


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

                MMM.N2     = 150;
                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_B MMM = new MONSTER11_B(new Vector2(50, -60 * i));
                MMM.Yn = 250;

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

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

                BOX.Add(MMM);
            }
        }
예제 #7
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]);
            }
        }