Exemplo n.º 1
0
        /// <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();
        }