/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); TheCursor.Create(Content.Load <Texture2D>("ASCursor"), Content.Load <Texture2D>("CursorAim"), Content.Load <Texture2D>("CharacAim"), Color.White); // TODO: use this.Content to load your game content here List <String> TextureNames = FileServices.ReadFileLines(@"Files\TextureNames.txt"); foreach (string TexName in TextureNames) { TextureHolder temp = new TextureHolder(); temp.Texture = Content.Load <Texture2D>(TexName); temp.Filename = TexName; TheContentHolder.Textures.Add(temp); } Areas.Create(TheContentHolder, graphics, TheCamera); List <string> WeaponLines = FileServices.ReadFileLines(@"Files\Weapons.txt"); TheWeapons.Create(WeaponLines, TheContentHolder); //must make sure character spawns within normal camera boundaries TheMainCharacter.Create(150, 150, 0f, TheContentHolder.GetTexture("Man2"), TheContentHolder.GetTexture("Man_Aim2"), TheWeapons.WeaponList[0], TheCamera); }