예제 #1
0
        // constructor 2
        public OpeningTitleScreen()
        {
            backwardscode       = new ScrollingBackgroundBackwardsTwo();
            virusplayer         = new VideoPlayer();
            secondscreen        = false;
            virusvidtexturerect = new Rectangle(0, 0, 512, 512);
            leapfingersrect     = new Rectangle[6];
            leapfingersrect[0]  = new Rectangle(0, 0, 128, 128);
            leapfingersrect[1]  = new Rectangle(0, 0, 128, 128);
            leapfingersrect[2]  = new Rectangle(0, 0, 128, 128);
            leapfingersrect[3]  = new Rectangle(0, 0, 128, 128);
            leapfingersrect[4]  = new Rectangle(0, 0, 128, 128);
            leapfingersrect[5]  = new Rectangle(0, 0, 128, 128);
            fingertextures      = new Texture2D[5];
            hitboxrect          = new Rectangle[11];

            backwards = new ScrollingBackgroundBackwards();
            forward   = new ScrollingBackground();
            scrollingbackgroundtop = new ScrollingBackgroundTop();
            for (int x = 0; x < 11; x++)
            {
                hitboxrect[x].X = 200;
                hitboxrect[x].Y = (x + 2) * 50;
            }

            scrollingbackgroundbottom = new ScrollingBackgroundBottom();

            broken = new bool[11];
            for (int g = 0; g < 11; g++)
            {
                broken[g] = false;
            }
        }
예제 #2
0
        //constructor 1
        public OpeningTitleScreen(bool choice)
        {
            backwardscode = new ScrollingBackgroundBackwardsTwo();
            secondscreen  = false;


            virusplayer = new VideoPlayer();

            virusvidtexturerect       = new Rectangle(0, 0, 512, 512);
            backwards                 = new ScrollingBackgroundBackwards();
            leapfingersrect           = new Rectangle[6];
            scrollingbackgroundbottom = new ScrollingBackgroundBottom();
            fingertextures            = new Texture2D[5];
            leapfingersrect[0]        = new Rectangle(0, 0, 128, 128);
            leapfingersrect[1]        = new Rectangle(0, 0, 128, 128);
            leapfingersrect[2]        = new Rectangle(0, 0, 128, 128);
            leapfingersrect[3]        = new Rectangle(0, 0, 128, 128);
            leapfingersrect[4]        = new Rectangle(0, 0, 128, 128);
            leapfingersrect[5]        = new Rectangle(0, 0, 128, 128);
            this.displayEndScenes     = choice;

            forward = new ScrollingBackground();

            //<<< graphics pheonomina >>> scrolling background of snow flakes at the bottom or any itemm;
            scrollingbackgroundtop = new ScrollingBackgroundTop();

            hitboxrect = new Rectangle[11];

            for (int x = 0; x < 11; x++)
            {
                hitboxrect[x].X = 200;
                hitboxrect[x].Y = (x + 2) * 50;
            }



            broken = new bool[11];
            for (int g = 0; g < 11; g++)
            {
                broken[g] = false;
            }
        }