Пример #1
0
 public void InitializeEngine(Graphics targerGraphics, Rectangle clientRectangle)
 {
     _engine = new Engine(targerGraphics, clientRectangle);
     _engine.SetTileMatrixSize(4, 3);
     for (var i = 0; i < 4; i++)
     {
         for (var j = 0; j < 3; j++)
         {
             switch (Plane.PlaneMatrix[i, j])
             {
                 case 1:
                     _engine.UpdateTile(i, j, Color.Blue);
                     break;
                 case 2:
                     _engine.UpdateTile(i, j, Color.Red);
                     break;
             }
         }
     }
 }
Пример #2
0
 public void InitializeEngine(Graphics targerGraphics, Rectangle clientRectangle)
 {
     _engine = new Engine(targerGraphics, clientRectangle);
     _engine.SetTileMatrixSize(4,3);
     for (var i = 0; i < 4; i++)
     {
         for (var j = 0; j < 3; j++)
         {
             if (_planeMatrix[i, j])
             {
                 _engine.UpdateTile(i, j, Color.Blue);
             }
         }
     }
 }