Esempio n. 1
0
        public Map(int width, int height)
        {
            Width  = width;
            Height = height;

            TerrainLayer  = new DimetricSprite[width, height];
            BuildingLayer = new DimetricSprite[width, height];
        }
Esempio n. 2
0
 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();
         }
     }
 }