public override void Draw(SpriteBatch spriteBatch)
        {
            #region Scrolling Background

            scrollingkungfu.Draw(spriteBatch);
            // spriteBatch.Draw(background, backgroundRect, Color.White);

            #endregion
            #region JESUS IS LORD <<< GRAPHICS >>> DRAW EVERYTHING TO THE SCREEN JESUS IS LORD GAME 18
            //JESUS IS LORD! DRAWS THE BACKGROUN <<< GRAPHICS>>> JESUS IS LORD!
            //  spriteBatch.Begin();
            //
            //spriteBatch.End();

            //DRAWS THE SPRITES! JESUS IS LORD!
            // spriteBatch.Begin();
            spriteBatch.Draw(goku[0], gokuRect, Color.White);
            spriteBatch.Draw(superman[0], supermanRect, Color.White);
            //  spriteBatch.End();
            // TODO: Add your drawing code here
            #endregion
            #region JESUS IS LORD <<< GRAPHICS >>> dRAW EFFEECTS ON THE SCREEN

            //  spriteBatch.Draw(blueLight, blueRect, Color.White);
            //  spriteBatch.Draw(redLight, redRect, Color.White);

            #endregion

            // fireball


            #region JESUS IS LORD movement text <<<< REPLACE EVERY GAME >>> JESUS IS LORD!
            //       spriteBatch.DrawString(font, "SAY GREGORY WINS!", new Vector2(150, 400), Color.Black);
            #endregion

            if (displayEndScenes)
            {
                #region JESUS IS LORD alternate ending tet <<<REPLACE EVERY GAME>>> JESUS IS LORD!
                //        spriteBatch.DrawString(font2, "HIT 3 TO SEE THE GREAT KUNG-FU ENDING!", new Vector2(150, 300), Color.White);
                #endregion
            }

            // fireball
        }
Esempio n. 2
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            //  spriteBatch.Draw(background, backgroundRect, Color.White);
            forward.Draw(spriteBatch);
            // backwards.Draw(spriteBatch);

            //   scrollingbackgroundtop.Draw(spriteBatch);
            //   scrollingbackgroundbottom.Draw(spriteBatch);
            spriteBatch.Draw(computervirus, new Rectangle(0, 200, 700, 200), Color.White);
            #region login screen draw

            spriteBatch.Draw(textbox, textboxrec, Color.White);
            spriteBatch.DrawString(spritefont, idnumber[0].ToString(), new Vector2(0, 0), Color.Black);
            spriteBatch.DrawString(spritefont, idnumber[1].ToString(), new Vector2(10, 0), Color.Black);
            spriteBatch.DrawString(spritefont, idnumber[2].ToString(), new Vector2(20, 0), Color.Black);
            spriteBatch.DrawString(spritefont, idnumber[3].ToString(), new Vector2(30, 0), Color.Black);
            spriteBatch.DrawString(spritefont, idnumber[4].ToString(), new Vector2(40, 0), Color.Black);
            spriteBatch.DrawString(spritefont, idnumber[5].ToString(), new Vector2(50, 0), Color.Black);
            spriteBatch.DrawString(spritefont, idnumber[6].ToString(), new Vector2(60, 0), Color.Black);
            spriteBatch.DrawString(spritefont, idnumber[7].ToString(), new Vector2(70, 0), Color.Black);
            spriteBatch.DrawString(spritefont, idnumber[8].ToString(), new Vector2(80, 0), Color.Black);

            #endregion

            // spriteBatch.Draw(wronghands, new Rectangle(0, 0, 800, 600), Color.White);
            //       spriteBatch.Draw(infectedcomputer, new Rectangle(300, 100, 256, 128), Color.White);
            //   spriteBatch.Draw(kungfusantaclaus, new Rectangle(0, 0, 800, 100), Color.White);

            //    virusvidtexture = virusplayer.GetTexture();

            //    spriteBatch.Draw(virusvidtexture, virusvidtexturerect, Color.White);



            /*     foreach (Vector2 fingerLocC in Game1.leapa.FingerPoints)
             *   {
             *
             *       leapcollisionb.X = (int)fingerLocC.X;
             *       leapcollisionb.Y = (int)fingerLocC.Y;
             *   } */



            /*
             #region JESUS IS LORD <<< GRAPHICS >>> DRAW EVERYTHING TO THE SCREEN JESUS IS LORD GAME 18
             *          //JESUS IS LORD! DRAWS THE BACKGROUN <<< GRAPHICS>>> JESUS IS LORD!
             *          //  spriteBatch.Begin();
             *
             *          //spriteBatch.End();
             *
             #endregion
             *
             #region JESUS IS LORD <<< GRAPHICS >>> DRAW SPRITES
             *          /*
             *          //DRAWS THE SPRITES! JESUS IS LORD!
             *          // spriteBatch.Begin();
             *          spriteBatch.Draw(goku[0], gokuRect, Color.White);
             *          spriteBatch.Draw(superman[0], supermanRect, Color.White);
             *          //  spriteBatch.End();
             *          // TODO: Add your drawing code here
             * */
            /*
             #endregion
             #region JESUS IS LORD <<< GRAPHICS >>> dRAW EFFEECTS ON THE SCREEN
             * /*
             * spriteBatch.Draw(blueLight, blueRect, Color.White);
             * spriteBatch.Draw(redLight, redRect, Color.White);
             *
             * */
            // #endregion



            /*
             * if (displayEndScenes)
             *
             #region JESUS IS LORD <<< GRAPHICS>>> DRAW WORDS ON THE SCREEN
             * spriteBatch.DrawString(font, "WHAT I SEE IS TRUTH THE GAME", new Vector2(0, 450), Color.White);
             * spriteBatch.DrawString(font, "GOAL: CLEAR ALL THE BLOCKS ON THE SCREEN BY TOUCHING THEM!", new Vector2(0, 375), Color.White);
             * spriteBatch.DrawString(font, "MAKE SURE YOU REALIEZ THAT YOU MUST CHOOSE A NEW COLOR EACH TIME!", new Vector2(0, 400), Color.White);
             * spriteBatch.DrawString(font, "HIT ENTER TO START GAME!!!!", new Vector2(0, 470), Color.White);
             #endregion
             *
             *
             * {
             * */


            // spriteBatch.DrawString(font2, "HIT 4 TO SEE THE GREAT KUN-FU ENDING!", new Vector2(150, 300), Color.White);

            //   }

            //  LeapComponet[] leaparray = list.ToArray();

            //    leapfingersrect[0].X = (int)Game1.leapa.FingerPoints[0].X;
            //    leapfingersrect[0].Y = (int) Game1.leapa.FingerPoints[0].Y;
            //  leapfingersrect[0].X = (int)Game1.leapa.FirstHandLoc.X;
            //  leapfingersrect[0].Y = (int)Game1.leapa.FirstHandLoc.Y;

            //leapfingersrect[] = Game1.leapa.FingerPoints.ToArray;
            // leapfingersrect[1].Y = (int)Game1.leapa.FingerPoints[2].Y;

            /*
             *          leapfingersrect[2].X = (int)Game1.leapa.FingerPoints[2].X;
             *         leapfingersrect[2].Y = (int)Game1.leapa.FingerPoints[2].Y;
             *
             *          leapfingersrect[3].X = (int)Game1.leapa.FingerPoints[3].X;
             *          leapfingersrect[3].Y = (int)Game1.leapa.FingerPoints[3].Y;
             *
             *          leapfingersrect[4].X = (int)Game1.leapa.FingerPoints[4].X;
             *          leapfingersrect[4].Y = (int)Game1.leapa.FingerPoints[4].Y;
             *
             *          leapfingersrect[5].X = (int)Game1.leapa.FingerPoints[5].X;
             *          leapfingersrect[5].Y = (int)Game1.leapa.FingerPoints[5].Y;
             *          spriteBatch.Draw(texture, leapfingersrect[0], Color.White);
             *          spriteBatch.Draw(texture, leapfingersrect[1], Color.White);
             *          spriteBatch.Draw(texture, leapfingersrect[2], Color.White);
             *          spriteBatch.Draw(texture, leapfingersrect[3], Color.White);
             *          spriteBatch.Draw(texture, leapfingersrect[4], Color.White);
             * */
            // spriteBatch.Draw(texture, leapfingersrect[0], Color.White);
            //spriteBatch.Draw(texture, leapfingersrect[1], Color.White);

            /*  for (int a = 0; a < 5; a++)
             *    {
             *        spriteBatch.Draw(texture, , Color.White);
             *    }*/

            Vector2[] a = new Vector2[10];
            //   a = Game1.leapa.FingerPoints.ToArray();
            //a =  Game1.leapa.FingerPoints.ToArray<Vector2>;
            // a = new Vector2[Game1.leapa.FingerPoints.Count];
            // for (int f = 0; f < 5; f++)
            //{
            //    a = new Vector2[f];
            // }
            int i = 0;

            /*       foreach (Vector2 fingerLoc in Game1.leapa.FingerPoints)
             *     {
             *         a[i++] = fingerLoc;
             *     }
             *
             *
             *     spriteBatch.Draw(fingertextures[0], Game1.leapa.Fingerarray[0], Color.White);
             *
             *     spriteBatch.Draw(fingertextures[1], Game1.leapa.Fingerarray[1], Color.White);
             *
             *
             *     spriteBatch.Draw(fingertextures[2], Game1.leapa.Fingerarray[2], Color.White);
             *
             *     spriteBatch.Draw(fingertextures[3], Game1.leapa.Fingerarray[3], Color.White);
             *
             *     spriteBatch.Draw(fingertextures[4], Game1.leapa.Fingerarray[4], Color.White);
             *
             * */
            //  spriteBatch.DrawString(font, a[0].ToString(), new Vector2(200, 200), Color.White);
            //spriteBatch.Draw(texture, a[Game1.leapa.FingerPoints.Count-1], Color.White);

            /*
             * foreach (Vector2 fingerLoc in Game1.leapa.FingerPoints)
             * {
             *
             *
             * spriteBatch.Draw(texture, fingerLoc, Color.White);
             *  spriteBatch.Draw(texture, Game1.leapa.FirstHandLoc, Color.White);
             *
             *
             *
             * }*/
        }