public Map(int width, int height) { Width = width; Height = height; TerrainLayer = new DimetricSprite[width, height]; BuildingLayer = new DimetricSprite[width, height]; }
public void Fill(Texture texture) { for (int i = 0; i < Width; ++i) { for (int j = 0; j < Height; ++j) { TerrainLayer[i, j] = new DimetricSprite(texture); TerrainLayer[i, j].WorldPosition = new Vector2f(i, j); TerrainLayer[i, j].Update(); } } }