예제 #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);
            battleMan = new BattleManager();

            Menu.loadButton(Content);

            princessTxt = Content.Load<Texture2D>("whiteTest");
            mouseTxt = Content.Load<Texture2D>("mouse");
            princess = new Unit("Palette", new Vector2(200, 150), princessTxt, Color.AntiqueWhite);
            Unit.loadTxt(Content);
            testEnemy = new Unit("TestE", new Vector2(400,150), princessTxt, Color.AntiqueWhite);
            heroes.Add(princess);
            enemies.Add(testEnemy);
            battleMan.startBattle(heroes, enemies);
            // TODO: use this.Content to load your game content here
        }