示例#1
0
文件: Game1.cs 项目: Skyteck/AntGame
        /// <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);

            // TODO: use this.Content to load your game content here
            _SelectTex = Content.Load <Texture2D>(@"Art/WhiteTexture");

            _ColonyManager.CreateColonies(Content);
            _AntManager.CreateAnts(Content);

            _ColonyManager.PlaceColony(new Vector2(-20, 55), GameObjects.Colony.AntTeams.kTeamGreen);
            _ColonyManager.PlaceColony(new Vector2(-29, 166), GameObjects.Colony.AntTeams.kTeamGreen);
            _ColonyManager.PlaceColony(new Vector2(-36, 248), GameObjects.Colony.AntTeams.kTeamGreen);

            _ColonyManager.PlaceColony(new Vector2(450, 76), GameObjects.Colony.AntTeams.kTeamBrown);
            _ColonyManager.PlaceColony(new Vector2(480, 170), GameObjects.Colony.AntTeams.kTeamBrown);
            _ColonyManager.PlaceColony(new Vector2(450, 254), GameObjects.Colony.AntTeams.kTeamBrown);

            _ColonyManager.PlaceColony(new Vector2(250, 150), GameObjects.Colony.AntTeams.kTeamNone);


            _FoodManager.LoadContent(Content);
        }