protected override void Initialize() { _spriteBatch = new SpriteBatch(GraphicsDevice); Services.AddService(typeof(SpriteBatch), _spriteBatch); _map = new Map(7, 7, 90, this); _aStar = new AStarPathFinder(_map); Components.Add(_map); base.Initialize(); }
public AStarPathFinder(Map map) { _map = map; }