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