public override void LoadContent(ContentManager content) { // map _map.LoadContent(@"Content/Map/lv01.tmx", content); // gameEntities Random random = new Random(); int numEntities = _gameEntities.Count; for (int idx = 0; idx < numEntities; idx++) { _gameEntities[idx].LoadContent(content); _gameEntities[idx].PositionX = random.Next(_map.NumColumns * _map.TileWidth); _gameEntities[idx].PositionY = random.Next(_map.NumRows * _map.TileHeight); } // pauseGameLayout _pauseGameLayout.BackgroundImage = content.Load <Texture2D>(@"Image/Control/Layout/Background"); ControlHelper.GetInstance().ToStandardButton(_btnContinueGame); ControlHelper.GetInstance().ToStandardButton(_btnSaveAndExitGame); // mainWarrior mainWarrior.LoadContent(content); base.LoadContent(content); }
public override void LoadContent(ContentManager content) { ControlHelper.GetInstance().ToStandardButton(btnClose); map.LoadContent("Content/Map/lv01.tmx", content); blue.LoadContent(content); }