/// <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); font = Content.Load <SpriteFont>("font"); // Special Drawing drawBattle = new DrawBattle(spriteBatch, font); // Menu objects MenuBackground = Content.Load <Texture2D>("MenuBase.png"); BattleButtonBackground = Content.Load <Texture2D>("MoveSelector.png"); HP_Bar = Content.Load <Texture2D>("HP_Bar.png"); InfoBack = Content.Load <Texture2D>("InfoBox.png"); // Characters GuardTex = Content.Load <Texture2D>("MartialGrunt.png"); PlayerTex = Content.Load <Texture2D>("Player.png"); AllyTex = Content.Load <Texture2D>("Ally.png"); // Songs BattleTheme = Content.Load <Song>("battleground_final"); Hover = Content.Load <SoundEffect>("hover2"); Click = Content.Load <SoundEffect>("click4"); // Logic for beginning music (needs to be after music is loaded, but only once) //MediaPlayer.Play(BattleTheme); //MediaPlayer.IsRepeating = true; //MediaPlayer.Volume = 0.7F; hover = Hover.CreateInstance(); click = Click.CreateInstance(); }
public Battle(Friendly _F1, Friendly _F2, Enemy _E1, Enemy _E2, SpriteBatch sb, SpriteFont sf) { F1 = _F1; F2 = _F2; E1 = _E1; E2 = _E2; config = new Config(); CombatantList = new List <Person> { { F1 }, { F2 }, { E1 }, { E2 }, }; drawBattle = new DrawBattle(sb, sf); }