// constructor 2
        public OpeningTitleScreen()
        {
            virusplayer = new VideoPlayer();

            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;
            }
        }
        //constructor 1
        public OpeningTitleScreen(bool choice)
        {
            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;
            }
        }
コード例 #3
0
        //constructor 1
        public LoginTitleScreen(bool choice)
        {
            #region Loginscreen initializer
            idnumber               = new char[9];
            count                  = 0;
            hitkey                 = false;
            idkey                  = new KeyboardState();
            spokenidnumberarray    = new string[1];
            spokenidnumberarray[0] = "empty";
            for (int i = 0; i < 9; i++)
            {
                idnumber[i] = '0';
            }


            texttospeechengine = new TextToSpeechEngine();
            texttospeechobject = new TextToSpeechObject();


            texttospeechengine.Initialize();
            texttospeechobject.Initialize();
            idnumberplace = 0;

            /*
             * idnumber[0] = '0';
             * idnumber[1] = '0';
             *
             * idnumber[2] = '0';
             * idnumber[3] = '0';
             *
             * idnumber[4] = '0';
             * idnumber[5] = '0';
             *
             * idnumber[6] = '0';
             * idnumber[7] = '0';
             *
             * idnumber[8] = '0';
             */

            textboxrec = new Rectangle(0, 0, 230, 45);
            #endregion


            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;
            }
        }