// 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;
            }
        }
        public override void LoadContent(ContentManager Content)
        {
            base.LoadContent(Content);
            #region LoadText
            //JESUS IS LORD <<< GRAPHICS >>> LOAD RESPECTIVE SPRITE FONTS FOR RESPECTIVE TEXT DISPLAY ON SCREEN JESUS IS LORD!
            if (font == null)
            {
                font = content.Load <SpriteFont>("content/Font1");
            }
            if (font2 == null)
            {
                font2 = content.Load <SpriteFont>("content/Font2");
            }
            #endregion


            // JESUS IS LORD <<< CONTROL >>> INITIALIZE A BUNCH OF ARRAYS FOR USE WITH LOADING TEXTURES THROUGH FOR LOOP JESUS IS LORD
            #region ARRAYS OF TEXTURES GAME 18
            goku     = new Texture2D[2];
            superman = new Texture2D[2];
            #endregion


            //fireball system


            #region JESUS IS LORD GAME 18 LOADING character TEXTURES IN ARRAYS JESUS IS LORD!
            // JESUS IS LORD <<< GRAPHICS >>> LOAD SPRITES INTO ARRAYS superman and goku JESUS IS LORD!
            for (int i = 0; i <= 2; i++)
            {
                if (i == 0)
                {
                    goku[i] = Content.Load <Texture2D>("characters/chr1");
                }
                else if (i == 1)
                {
                    goku[i] = Content.Load <Texture2D>("characters/goku1");
                }
            }

            for (int x = 0; x <= 2; x++)
            {
                if (x == 0)
                {
                    superman[x] = Content.Load <Texture2D>("characters/chr2");
                }
                else if (x == 1)
                {
                    superman[x] = Content.Load <Texture2D>("characters/superman1");
                }
            }

            #endregion
            #region JESUS IS LORD!! <<<<< GRAPHICS BACKGROUND >>>
            gokuRect     = new Rectangle(500, 50, 200, 307);
            supermanRect = new Rectangle(0, 50, 250, 300);

            background     = Content.Load <Texture2D>("backgrounds/masterbackground");
            backgroundRect = new Rectangle(0, 0, 800, 600);


            #endregion

            #region JESUS IS LORD <<< SOUND >>> SONGS AND SOUND EFFECTS FOR GAME

            backgroundMusic    = Content.Load <Song>("sound/bgmusic01");
            MediaPlayer.Volume = 0.2f;
            MediaPlayer.Play(backgroundMusic);

            slice     = Content.Load <SoundEffect>("sound/slice");
            explosion = Content.Load <SoundEffect>("sound/explosion");
            beatUp    = Content.Load <SoundEffect>("sound/beatup");
            #endregion
            scrollingkungfu = new ScrollingBackground();
            scrollingkungfu.LoadContent(Content);
            #region EFFECTS JESUS IS LORD!

            // JESUS IS LORD << DRAWS EFFECTS AND LIGHTNING AND SUCH JESUS IS LORD!@
            blueLight = Content.Load <Texture2D>("effects/JESUSISLORDeffectright");
            redLight  = Content.Load <Texture2D>("effects/JESUSISLORDeffectleft");

            redRect  = new Rectangle(0, 200, 132, 132);
            blueRect = new Rectangle(650, 200, 132, 132);
            #endregion
        }
Ejemplo n.º 4
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;
            }
        }