public void LoadContent(ContentManager content) { //Trainer sprite Texture2D opponentSprite = content.Load <Texture2D>("Npc\\gary_battle_sprite"); Texture2D playerSprite = content.Load <Texture2D>("Npc\\red_battle_sprite"); Texture2D selectionMoveSprite = content.Load <Texture2D>("selection_move_box"); Texture2D selectionActionSprite = content.Load <Texture2D>("action_selection_box"); font = content.Load <SpriteFont>("Font\\pokemon"); background = new Sprite(content.Load <Texture2D>("Battle\\grass_background"), new Rectangle(0, 0, Setting.ScreenWidth, 350)); playerBattleFrame = new Sprite(content.Load <Texture2D>("Battle\\player_battle_frame"), new Rectangle(425, 235, 350, 110)); opponentBattleFrame = new Sprite(content.Load <Texture2D>("Battle\\opponent_battle_frame"), new Rectangle(40, 55, 345, 90)); dialogBox = new DialogBox(content.Load <Texture2D>("Battle\\combat_dialogbox"), new Rectangle(0, 350, Setting.ScreenWidth, 175)); playerTextureRectangle = new Sprite(playerSprite, new Rectangle(790, 175, Setting.PokemonSpriteSize, Setting.PokemonSpriteSize)); opponentTextureRectangle = new Sprite(opponentSprite, new Rectangle(0, 45, Setting.PokemonSpriteSize, Setting.PokemonSpriteSize)); opponentPokemonSprite = new Sprite(opponentPokemon.SpriteSet.FrontSprite, new Rectangle(900, 63, Setting.PokemonSpriteSize, Setting.PokemonSpriteSize)); playerPokemonSprite = new Sprite(playerPokemon.SpriteSet.BackSprite, new Rectangle(-200, 219, Setting.PokemonSpriteSize, Setting.PokemonSpriteSize)); dialogBox.LoadContent(content, 32, 33, Color.White); selectionBoxAction = new SelectionBox(new Sprite(selectionActionSprite, new Rectangle(500, 350, 300, 175))); selectionBoxAction.LoadContent(content, 19, 32, 20, 50); selectionBoxMove = new SelectionBox(new Sprite(selectionActionSprite, new Rectangle(0, 350, 450, 175))); selectionBoxMove.LoadContent(content, 19, 32, 40, 50); SelectionBoxAction(); SelectionBoxMove(); selectionBoxMove.SetVisibility(false); opponentName = new Label(font, new Vector2(60, 65), new Color(48, 48, 48)); playerName = new Label(font, new Vector2(480, 245), new Color(48, 48, 48)); playerLevel = new Label(font, new Vector2(732, 249), new Color(48, 48, 48)); playerPokemonHp = new Label(font, new Vector2(665, 300), new Color(48, 48, 48)); playerPokemonMaxHp = new Label(font, new Vector2(700, 300), new Color(48, 48, 48)); opponentLevel = new Label(font, new Vector2(323, 70), new Color(48, 48, 48)); opponentHealthBar = new HealthBar(opponentPokemon, new Sprite(content.Load <Texture2D>("Color\\green"), new Rectangle(175, 108, 165, 10))); opponentHealthBar.LoadContent(content); playerHealthBar = new HealthBar(playerPokemon, new Sprite(content.Load <Texture2D>("Color\\green"), new Rectangle(588, 285, 160, 10))); playerHealthBar.LoadContent(content); }