Beispiel #1
0
        public void setBox7()
        {
            ballPos = new Vector2(400, 350);
            passPos = new Vector2(100, 370);
            boxMax  = 16;



            //不明物建構
            box    = new Box[boxMax];
            box[0] = new ZLine(Game1.picZ1, new Vector2(0, 0), new Vector2(800, 0));
            box[1] = new ZLine(Game1.picZ1, new Vector2(0, 0), new Vector2(0, 400));
            box[2] = new ZLine(Game1.picZ1, new Vector2(800, 0), new Vector2(800, 400));
            box[3] = new ZLine(Game1.picZ1, new Vector2(0, 400), new Vector2(800, 400));

            box[4] = new ZLine(Game1.picZ1, new Vector2(450, 400), new Vector2(450, 250)); //第一條線
            box[5] = new ZLine(Game1.picZ1, new Vector2(450, 250), new Vector2(200, 250)); //第二條線
            box[6] = new ZLine(Game1.picZ1, new Vector2(150, 400), new Vector2(150, 150)); //第三條線
            box[7] = new ZLine(Game1.picZ1, new Vector2(150, 150), new Vector2(550, 150)); //第四條線
            box[8] = new ZLine(Game1.picZ1, new Vector2(550, 150), new Vector2(550, 250)); //第五條線


            box[9]  = new ZLine(Game1.picZ1, new Vector2(50, 100), new Vector2(50, 200));   //第六條線
            box[10] = new ZLine(Game1.picZ1, new Vector2(100, 150), new Vector2(100, 250)); //第七條線
            box[11] = new ZLine(Game1.picZ1, new Vector2(50, 350), new Vector2(150, 350));  //第八條線



            box[12] = new Zbox2(200, 70, 15, true); //斜線
            box[13] = new Zbox2(210, 0, 19, true);  //斜線
            box[14] = new Zbox2(350, 70, 15, true); //斜線
            box[15] = new Zbox2(360, 0, 19, true);  //斜線
        }
Beispiel #2
0
        public void setBox13()
        {
            ballPos = new Vector2(30, 360);
            passPos = new Vector2(410, 10);
            boxMax  = 36;

            //不明物建構
            box    = new Box[boxMax];
            box[0] = new ZLine(Game1.picZ1, new Vector2(0, 0), new Vector2(800, 0));
            box[1] = new ZLine(Game1.picZ1, new Vector2(0, 0), new Vector2(0, 400));
            box[2] = new ZLine(Game1.picZ1, new Vector2(800, 0), new Vector2(800, 400));
            box[3] = new ZLine(Game1.picZ1, new Vector2(0, 400), new Vector2(800, 400));


            //------
            box[4]  = new ZLine(Game1.picZ1, new Vector2(400, 0), new Vector2(400, 200));   //1
            box[5]  = new ZLine(Game1.picZ1, new Vector2(400, 200), new Vector2(600, 200)); //2
            box[6]  = new ZLine(Game1.picZ1, new Vector2(600, 200), new Vector2(600, 350)); //3
            box[7]  = new ZLine(Game1.picZ1, new Vector2(600, 350), new Vector2(450, 350)); //4
            box[8]  = new ZLine(Game1.picZ1, new Vector2(450, 350), new Vector2(450, 300)); //5
            box[9]  = new ZLine(Game1.picZ1, new Vector2(450, 300), new Vector2(400, 300)); //6
            box[10] = new ZLine(Game1.picZ1, new Vector2(400, 300), new Vector2(400, 250)); //7
            box[11] = new ZLine(Game1.picZ1, new Vector2(400, 250), new Vector2(350, 250)); //8
            box[12] = new ZLine(Game1.picZ1, new Vector2(350, 250), new Vector2(350, 200)); //9
            box[13] = new ZLine(Game1.picZ1, new Vector2(350, 200), new Vector2(150, 200)); //10
            box[14] = new ZLine(Game1.picZ1, new Vector2(150, 200), new Vector2(150, 250)); //11



            box[15] = new ZLine(Game1.picZ1, new Vector2(150, 250), new Vector2(100, 250)); //12
            box[16] = new ZLine(Game1.picZ1, new Vector2(100, 250), new Vector2(100, 300)); //13
            box[17] = new ZLine(Game1.picZ1, new Vector2(100, 300), new Vector2(50, 300));  //14
            box[18] = new ZLine(Game1.picZ1, new Vector2(50, 300), new Vector2(50, 350));   //15
            box[19] = new ZLine(Game1.picZ1, new Vector2(50, 350), new Vector2(0, 350));    //16
            box[20] = new ZLine(Game1.picZ1, new Vector2(410, 400), new Vector2(410, 340)); //17
            box[21] = new ZLine(Game1.picZ1, new Vector2(410, 340), new Vector2(360, 340)); //18


            box[22] = new ZLine(Game1.picZ1, new Vector2(360, 340), new Vector2(360, 290)); //19
            box[23] = new ZLine(Game1.picZ1, new Vector2(360, 290), new Vector2(310, 290)); //20
            box[24] = new ZLine(Game1.picZ1, new Vector2(310, 290), new Vector2(310, 240)); //21
            box[25] = new ZLine(Game1.picZ1, new Vector2(310, 240), new Vector2(190, 240)); //22
            box[26] = new ZLine(Game1.picZ1, new Vector2(190, 240), new Vector2(190, 290)); //23
            box[27] = new ZLine(Game1.picZ1, new Vector2(190, 290), new Vector2(140, 290)); //24
            box[28] = new ZLine(Game1.picZ1, new Vector2(140, 290), new Vector2(140, 340)); //25
            box[29] = new ZLine(Game1.picZ1, new Vector2(140, 340), new Vector2(90, 340));  //26
            box[30] = new ZLine(Game1.picZ1, new Vector2(90, 340), new Vector2(90, 400));   //27
            box[31] = new ZLine(Game1.picZ1, new Vector2(700, 0), new Vector2(700, 400));   //28



            box[32] = new Zbox2(700, 20, 25, false); //斜線
            box[33] = new Zbox2(400, 40, 20, true);  //斜線
            box[34] = new Zbox2(600, 40, 30, false); //斜線
            box[35] = new Zbox2(450, 0, 12, true);   //斜線
        }
Beispiel #3
0
        public void setBox18()
        {
            ballPos = new Vector2(770, 370);
            passPos = new Vector2(350, 350);
            boxMax  = 33;

            //不明物建構
            box    = new Box[boxMax];
            box[0] = new ZLine(Game1.picZ1, new Vector2(0, 0), new Vector2(800, 0));
            box[1] = new ZLine(Game1.picZ1, new Vector2(0, 0), new Vector2(0, 400));
            box[2] = new ZLine(Game1.picZ1, new Vector2(800, 0), new Vector2(800, 400));
            box[3] = new ZLine(Game1.picZ1, new Vector2(0, 400), new Vector2(800, 400));


            //------
            box[4]  = new ZLine(Game1.picZ1, new Vector2(800, 350), new Vector2(775, 350)); //1
            box[5]  = new ZLine(Game1.picZ1, new Vector2(775, 350), new Vector2(775, 250)); //2
            box[6]  = new ZLine(Game1.picZ1, new Vector2(775, 250), new Vector2(650, 250)); //3
            box[7]  = new ZLine(Game1.picZ1, new Vector2(650, 250), new Vector2(650, 200)); //4
            box[8]  = new ZLine(Game1.picZ1, new Vector2(650, 200), new Vector2(550, 200)); //5
            box[9]  = new ZLine(Game1.picZ1, new Vector2(550, 200), new Vector2(550, 150)); //6
            box[10] = new ZLine(Game1.picZ1, new Vector2(450, 150), new Vector2(600, 150)); //7
            box[11] = new ZLine(Game1.picZ1, new Vector2(600, 150), new Vector2(600, 0));   //8
            box[12] = new ZLine(Game1.picZ1, new Vector2(700, 400), new Vector2(700, 300)); //9
            box[13] = new ZLine(Game1.picZ1, new Vector2(700, 300), new Vector2(600, 300)); //10


            box[14] = new ZLine(Game1.picZ1, new Vector2(600, 300), new Vector2(600, 250)); //11
            box[15] = new ZLine(Game1.picZ1, new Vector2(600, 250), new Vector2(500, 250)); //12
            box[16] = new ZLine(Game1.picZ1, new Vector2(500, 250), new Vector2(500, 200)); //13
            box[17] = new ZLine(Game1.picZ1, new Vector2(500, 200), new Vector2(400, 200)); //14
            box[18] = new ZLine(Game1.picZ1, new Vector2(400, 200), new Vector2(400, 100)); //15
            box[19] = new ZLine(Game1.picZ1, new Vector2(300, 100), new Vector2(400, 100)); //16
            box[20] = new ZLine(Game1.picZ1, new Vector2(300, 100), new Vector2(300, 300)); //17
            box[21] = new ZLine(Game1.picZ1, new Vector2(300, 300), new Vector2(400, 300)); //18
            box[22] = new ZLine(Game1.picZ1, new Vector2(400, 300), new Vector2(400, 400)); //19
            box[23] = new ZLine(Game1.picZ1, new Vector2(100, 0), new Vector2(100, 400));   //20



            box[24] = new Zvbox(Game1.picZ2, new Vector2(500, 200), 1, 2, 1, 30, 0); //C1
            box[25] = new Zvbox(Game1.picZ2, new Vector2(400, 50), 1, 2, 2, 30, 0);  //C1
            box[26] = new Zvbox(Game1.picZ2, new Vector2(350, 100), 1, 2, 2, 30, 0); //C1



            box[27] = new Zbox2(180, 165, 16, false); //斜線
            box[28] = new Zbox2(140, 50, 20, true);   //斜線
            box[29] = new Zbox2(340, 50, 35, false);  //斜線
            box[30] = new Zbox2(190, 0, 12, true);    //斜線

            box[31] = new Zbox3(Game1.picZ2, new Vector2(110, 0), false, 1, 50, 50);
            box[32] = new Zbox3(Game1.picZ2, new Vector2(130, 220), false, 1, 70, 50);
        }
Beispiel #4
0
        public void setBox11()
        {
            ballPos = new Vector2(650, 150);
            passPos = new Vector2(80, 350);
            boxMax  = 23;

            //不明物建構
            box    = new Box[boxMax];
            box[0] = new ZLine(Game1.picZ1, new Vector2(0, 0), new Vector2(800, 0));
            box[1] = new ZLine(Game1.picZ1, new Vector2(0, 0), new Vector2(0, 400));
            box[2] = new ZLine(Game1.picZ1, new Vector2(800, 0), new Vector2(800, 400));
            box[3] = new ZLine(Game1.picZ1, new Vector2(0, 400), new Vector2(800, 400));

            //-------------------------------------------------------------
            box[4]  = new ZLine(Game1.picZ1, new Vector2(700, 200), new Vector2(600, 200)); //1
            box[5]  = new ZLine(Game1.picZ1, new Vector2(600, 200), new Vector2(600, 50));  //2
            box[6]  = new ZLine(Game1.picZ1, new Vector2(600, 50), new Vector2(750, 50));   //3
            box[7]  = new ZLine(Game1.picZ1, new Vector2(750, 50), new Vector2(750, 250));  //4
            box[8]  = new ZLine(Game1.picZ1, new Vector2(750, 250), new Vector2(500, 250)); //5
            box[9]  = new ZLine(Game1.picZ1, new Vector2(500, 0), new Vector2(500, 300));   //6
            box[10] = new ZLine(Game1.picZ1, new Vector2(500, 300), new Vector2(350, 300)); //7
            box[11] = new ZLine(Game1.picZ1, new Vector2(350, 300), new Vector2(350, 0));   //8
            box[12] = new ZLine(Game1.picZ1, new Vector2(200, 400), new Vector2(200, 100)); //9
            box[13] = new ZLine(Game1.picZ1, new Vector2(200, 100), new Vector2(150, 100)); //10
            box[14] = new ZLine(Game1.picZ1, new Vector2(150, 100), new Vector2(150, 400)); //11


            box[15] = new Zvbox(Game1.picZ2, new Vector2(350, 300), 1, 0, 4, 35, 1); //B1

            box[16] = new Zvbox(Game1.picZ2, new Vector2(200, 250), 1, 0, 4, 28, 0); //B2
            box[17] = new Zvbox(Game1.picZ2, new Vector2(200, 0), 1, 1, 4, 35, 0);   //B3

            box[18] = new Zvbox(Game1.picZ2, new Vector2(100, 180), 1, 0, 4, 30, 1); //B6
            box[19] = new Zvbox(Game1.picZ2, new Vector2(0, 200), 1, 0, 4, 30, 0);   //B7

            box[20] = new Zvbox(Game1.picZ2, new Vector2(550, 270), 1, 2, 4, 20, 0); //C1


            box[21] = new Zbox2(200, 70, 15, true); //斜線
            box[22] = new Zbox2(210, 0, 19, true);  //斜線
        }