diff --git a/AntiAircraftGun/src/main/java/com/example/antiaircraftgun/DrawingArmoredCar.java b/AntiAircraftGun/src/main/java/com/example/antiaircraftgun/DrawingArmoredCar.java index e7ef116..8a9ef14 100644 --- a/AntiAircraftGun/src/main/java/com/example/antiaircraftgun/DrawingArmoredCar.java +++ b/AntiAircraftGun/src/main/java/com/example/antiaircraftgun/DrawingArmoredCar.java @@ -91,6 +91,13 @@ public class DrawingArmoredCar 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.setLineWidth(2); @@ -99,13 +106,9 @@ public class DrawingArmoredCar gc.fillRect(_startPosX + 5, _startPosY + 10, 80, 10); gc.strokeRect(_startPosX + 25, _startPosY, 40, 10); gc.strokeRect(_startPosX + 5, _startPosY + 10, 80, 10); - - // Гусеницы - 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.fillOval(_startPosX + 27, _startPosY + 16, 8, 8); + gc.fillOval(_startPosX + 40, _startPosY + 16, 8, 8); + gc.fillOval(_startPosX + 53, _startPosY + 16, 8, 8); } public void ChangeBorders(int width, int height)