示例#1
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>

        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        public override void LoadContent(ContentManager Content)
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            bgmusic = Content.Load <Song>("bgmusic01");

            MediaPlayer.Play(bgmusic);
            #region ChangingBackgrounds LoadContent backgroudn loads
            changingbackgrounds[0] = Content.Load <Texture2D>("changingbackground/image1");
            changingbackgrounds[1] = Content.Load <Texture2D>("changingbackground/image2");
            changingbackgrounds[2] = Content.Load <Texture2D>("changingbackground/image3");
            changingbackgrounds[3] = Content.Load <Texture2D>("changingbackground/image4");
            changingbackgrounds[4] = Content.Load <Texture2D>("changingbackground/image5");

            changingbackgrounds[5] = Content.Load <Texture2D>("changingbackground/image6");
            changingbackgrounds[6] = Content.Load <Texture2D>("changingbackground/image7");
            changingbackgrounds[7] = Content.Load <Texture2D>("changingbackground/image8");
            changingbackgrounds[8] = Content.Load <Texture2D>("changingbackground/image9");
            changingbackgrounds[9] = Content.Load <Texture2D>("changingbackground/image10");
            #endregion
            // TODO: use this.Content to load your game content here
            buttonobject.LoadContent(Content);
            buttonengine.LoadContent(Content);
            whitebox   = Content.Load <Texture2D>("whitebox");
            spritefont = Content.Load <SpriteFont>("content/SpriteFont1");
            texttospeechengine.LoadContent(Content);
            texttospeechobject.LoadContent(Content);

            MediaPlayer.Volume = .05f;
        }
示例#2
0
        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
            hitsound       = Content.Load <SoundEffect>("tokensuccess");
            leapcollisionb = new Rectangle(0, 0, 64, 64);
            backwards.LoadContent(Content);
            #region JESUS IS LORD GAME 18 LOADING TEXTURES IN ARRAYS JESUS IS LORD!
            computervirus    = Content.Load <Texture2D>("backgrounds/computervirus");
            infectedcomputer = Content.Load <Texture2D>("backgrounds/infectedcomputer");

            MediaPlayer.Volume = 0.08f;

            /*
             * // 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/goku");
             *  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/superman");
             *  else if (x == 1)
             *      superman[x] = Content.Load<Texture2D>("characters/superman1");
             *
             * }
             *
             *
             * gokuRect = new Rectangle(0, 160, 130, 246);
             * supermanRect = new Rectangle(300, 10, 818, 614);
             *
             */

            #endregion
            scrollingbackgroundbottom.LoadContent(Content);
            scrollingbackgroundtop.LoadContent(Content);
            forward.LoadContent(Content);
            kungfusantaclaus = Content.Load <Texture2D>("backgrounds/kungfusantaclaus");
            #region JESUS IS LORD LOADING BACKGROUND JESUS IS LORD

            /*fingertextures[0] = Content.Load<Texture2D>("fingers/finger1");
             * fingertextures[1] = Content.Load<Texture2D>("fingers/finger2");
             * fingertextures[2] = Content.Load<Texture2D>("fingers/finger3");
             * fingertextures[3] = Content.Load<Texture2D>("fingers/finger4");
             * fingertextures[4] = Content.Load<Texture2D>("fingers/finger5"); */
            wronghands     = Content.Load <Texture2D>("backgrounds/WRONGHANDS");
            background     = Content.Load <Texture2D>("backgrounds/TitleScreen");
            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

            #region EFFECTS JESUS IS LORD!

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

            //  redRect = new Rectangle(0, 200, 132, 132);
            //   blueRect = new Rectangle(650, 200, 132, 132);
            #endregion

            // virusvideo = Content.Load<Video>("videos/viruscountdown");
            //  virusplayer.Play(virusvideo);


            #region loginscreen load content
            texttospeechengine.LoadContent(Content);
            texttospeechobject.LoadContent(Content);

            textbox    = Content.Load <Texture2D>("whitebox");
            spritefont = Content.Load <SpriteFont>("content/Font1");
            #endregion
        }