示例#1
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(deepestmasterofcode, new Rectangle(0, 0, 800, 600), Color.White);


            // these are the callings for the objects that make the scrolling happen
            forward.Draw(spriteBatch);
            backwards.Draw(spriteBatch);
            backwardscode.Draw(spriteBatch);
            spriteBatch.Draw(background, backgroundRect, Color.White);


            //   scrollingbackgroundtop.Draw(spriteBatch);
            //   scrollingbackgroundbottom.Draw(spriteBatch);
            // spriteBatch.Draw(computervirus, new Rectangle(0, 200, 256, 256), Color.White);
            // 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);

            spriteBatch.DrawString(font, "PRESS ENTER", new Vector2(0, 0), Color.White);
            //   virusvidtexture = virusplayer.GetTexture();

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

            /* if (secondscreen == true)
             * {
             *   spriteBatch.DrawString(font, "YOUR SCORE PROVES THAT YOU ARE GREAT!", new Vector2(100, 280), Color.Red);
             *
             *   spriteBatch.DrawString(font, PlayVideoGameState.Score.ToString(), new Vector2(400, 300), Color.Red);
             * }*/
            /*     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);
             *
             *
             *
             * }*/
        }