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); } } } }
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; } } } }