Добавление деталей корпуса
This commit is contained in:
parent
025940e303
commit
970a1b77b3
@ -91,6 +91,13 @@ public class DrawingArmoredCar
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Гусеницы
|
||||||
|
gc.setFill(Color.GRAY);
|
||||||
|
gc.fillRect(_startPosX + 10, _startPosY + 20, 70, 20);
|
||||||
|
gc.fillOval(_startPosX, _startPosY + 20, 20, 20);
|
||||||
|
gc.fillOval(_startPosX + 70, _startPosY + 20, 20, 20);
|
||||||
|
_drawingRollers.DrawRollers(gc, _startPosX, _startPosY);
|
||||||
|
|
||||||
// Броня
|
// Броня
|
||||||
gc.setStroke(Color.BLACK);
|
gc.setStroke(Color.BLACK);
|
||||||
gc.setLineWidth(2);
|
gc.setLineWidth(2);
|
||||||
@ -99,13 +106,9 @@ public class DrawingArmoredCar
|
|||||||
gc.fillRect(_startPosX + 5, _startPosY + 10, 80, 10);
|
gc.fillRect(_startPosX + 5, _startPosY + 10, 80, 10);
|
||||||
gc.strokeRect(_startPosX + 25, _startPosY, 40, 10);
|
gc.strokeRect(_startPosX + 25, _startPosY, 40, 10);
|
||||||
gc.strokeRect(_startPosX + 5, _startPosY + 10, 80, 10);
|
gc.strokeRect(_startPosX + 5, _startPosY + 10, 80, 10);
|
||||||
|
gc.fillOval(_startPosX + 27, _startPosY + 16, 8, 8);
|
||||||
// Гусеницы
|
gc.fillOval(_startPosX + 40, _startPosY + 16, 8, 8);
|
||||||
gc.setFill(Color.GRAY);
|
gc.fillOval(_startPosX + 53, _startPosY + 16, 8, 8);
|
||||||
gc.fillRect(_startPosX + 10, _startPosY + 20, 70, 20);
|
|
||||||
gc.fillOval(_startPosX, _startPosY + 20, 20, 20);
|
|
||||||
gc.fillOval(_startPosX + 70, _startPosY + 20, 20, 20);
|
|
||||||
_drawingRollers.DrawRollers(gc, _startPosX, _startPosY);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ChangeBorders(int width, int height)
|
public void ChangeBorders(int width, int height)
|
||||||
|
Loading…
Reference in New Issue
Block a user