From 3d5082eb787548935d5342f9007a878038cf8972 Mon Sep 17 00:00:00 2001 From: Vladislave Date: Wed, 20 Mar 2024 11:54:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B3=D1=80=D0=B0=D0=BD=D0=B8=D1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Drawnings/DrawningAirBomber.cs | 16 +++---- .../ProjectBomber/Drawnings/DrawningPlane.cs | 42 +++++++++---------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/ProjectBomber/ProjectBomber/Drawnings/DrawningAirBomber.cs b/ProjectBomber/ProjectBomber/Drawnings/DrawningAirBomber.cs index 65fd102..07ac006 100644 --- a/ProjectBomber/ProjectBomber/Drawnings/DrawningAirBomber.cs +++ b/ProjectBomber/ProjectBomber/Drawnings/DrawningAirBomber.cs @@ -38,20 +38,20 @@ public class DrawingAirBomber : DrawningPlane if (airBomber.Engine) { Brush brBrown = new SolidBrush(Color.Brown); - g.DrawRectangle(pen, _startPosX.Value + 65, _startPosY.Value + 35, 20, 5); - g.DrawRectangle(pen, _startPosX.Value + 65, _startPosY.Value + 70, 20, 5); - g.FillRectangle(brBrown, _startPosX.Value + 65, _startPosY.Value + 35, 20, 5); - g.FillRectangle(brBrown, _startPosX.Value + 65, _startPosY.Value + 70, 20, 5); + g.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value + 60, 20, 5); + g.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value + 95, 20, 5); + g.FillRectangle(brBrown, _startPosX.Value + 90, _startPosY.Value + 60, 20, 5); + g.FillRectangle(brBrown, _startPosX.Value + 90, _startPosY.Value + 95, 20, 5); } //наличие дополнительных бомб if (airBomber.Bomb) { Brush brGreen = new SolidBrush(Color.Green); - g.DrawRectangle(pen, _startPosX.Value + 30, _startPosY.Value + 10, 20, 8); - g.DrawRectangle(pen, _startPosX.Value + 30, _startPosY.Value + 90, 20, 8); - g.FillRectangle(brGreen, _startPosX.Value + 30, _startPosY.Value + 10, 20, 8); - g.FillRectangle(brGreen, _startPosX.Value + 30, _startPosY.Value + 90, 20, 8); + g.DrawRectangle(pen, _startPosX.Value + 55, _startPosY.Value + 35, 20, 8); + g.DrawRectangle(pen, _startPosX.Value + 55, _startPosY.Value + 115, 20, 8); + g.FillRectangle(brGreen, _startPosX.Value + 55, _startPosY.Value + 35, 20, 8); + g.FillRectangle(brGreen, _startPosX.Value + 55, _startPosY.Value + 115, 20, 8); } } } \ No newline at end of file diff --git a/ProjectBomber/ProjectBomber/Drawnings/DrawningPlane.cs b/ProjectBomber/ProjectBomber/Drawnings/DrawningPlane.cs index 5f78327..ba88f1f 100644 --- a/ProjectBomber/ProjectBomber/Drawnings/DrawningPlane.cs +++ b/ProjectBomber/ProjectBomber/Drawnings/DrawningPlane.cs @@ -179,50 +179,50 @@ public class DrawningPlane //главная часть Brush br = new SolidBrush(EntityPlane.BodyColor); - g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 40, 100, 30); - g.FillRectangle(br, _startPosX.Value, _startPosY.Value + 40, 100, 30); + g.DrawRectangle(pen, _startPosX.Value+25, _startPosY.Value + 65, 100, 30); + g.FillRectangle(br, _startPosX.Value+25, _startPosY.Value + 65, 100, 30); //носовая часть Brush brBlack = new SolidBrush(Color.Black); - Point point1 = new Point(_startPosX.Value -25, _startPosY.Value + 55); - Point point2 = new Point(_startPosX.Value, _startPosY.Value + 70); - Point point3 = new Point(_startPosX.Value, _startPosY.Value + 40); + Point point1 = new Point(_startPosX.Value, _startPosY.Value + 80); + Point point2 = new Point(_startPosX.Value + 25, _startPosY.Value + 95); + Point point3 = new Point(_startPosX.Value + 25, _startPosY.Value + 65); Point[] curvePointsNos = { point1, point2, point3 }; g.DrawPolygon(pen, curvePointsNos); g.FillPolygon(brBlack, curvePointsNos); //верхнее левое крыло - Point point4 = new Point(_startPosX.Value + 50, _startPosY.Value); - Point point5 = new Point(_startPosX.Value + 50, _startPosY.Value + 40); - Point point6 = new Point(_startPosX.Value + 65, _startPosY.Value + 40); - Point point7 = new Point(_startPosX.Value + 55, _startPosY.Value); + Point point4 = new Point(_startPosX.Value + 75, _startPosY.Value + 25); + Point point5 = new Point(_startPosX.Value + 75, _startPosY.Value + 65); + Point point6 = new Point(_startPosX.Value + 90, _startPosY.Value + 65); + Point point7 = new Point(_startPosX.Value + 80, _startPosY.Value + 25); Point[] Wings1 = { point4, point5, point6, point7 }; g.DrawPolygon(pen, Wings1); g.FillPolygon(br, Wings1); //нижнее левое крыло - Point point8 = new Point(_startPosX.Value + 50, _startPosY.Value + 130); - Point point9 = new Point(_startPosX.Value + 50, _startPosY.Value + 70); - Point point10 = new Point(_startPosX.Value + 65, _startPosY.Value + 70); - Point point11 = new Point(_startPosX.Value + 55, _startPosY.Value + 130); + Point point8 = new Point(_startPosX.Value + 75, _startPosY.Value + 155); + Point point9 = new Point(_startPosX.Value + 75, _startPosY.Value + 95); + Point point10 = new Point(_startPosX.Value + 90, _startPosY.Value + 95); + Point point11 = new Point(_startPosX.Value + 80, _startPosY.Value + 155); Point[] Wings2 = { point8, point9, point10, point11 }; g.DrawPolygon(pen, Wings2); g.FillPolygon(br, Wings2); //нижнее правое крыло - Point point12 = new Point(_startPosX.Value + 100, _startPosY.Value + 90); - Point point13 = new Point(_startPosX.Value + 100, _startPosY.Value + 70); - Point point14 = new Point(_startPosX.Value + 85, _startPosY.Value + 70); - Point point15 = new Point(_startPosX.Value + 90, _startPosY.Value + 90); + Point point12 = new Point(_startPosX.Value + 125, _startPosY.Value + 115); + Point point13 = new Point(_startPosX.Value + 125, _startPosY.Value + 95); + Point point14 = new Point(_startPosX.Value + 110, _startPosY.Value + 95); + Point point15 = new Point(_startPosX.Value + 115, _startPosY.Value + 115); Point[] Wings3 = { point12, point13, point14, point15 }; g.DrawPolygon(pen, Wings3); g.FillPolygon(br, Wings3); //верхнее правое крыло - Point point16 = new Point(_startPosX.Value + 100, _startPosY.Value + 20); - Point point17 = new Point(_startPosX.Value + 100, _startPosY.Value + 40); - Point point18 = new Point(_startPosX.Value + 85, _startPosY.Value + 40); - Point point19 = new Point(_startPosX.Value + 90, _startPosY.Value + 20); + Point point16 = new Point(_startPosX.Value + 125, _startPosY.Value + 45); + Point point17 = new Point(_startPosX.Value + 125, _startPosY.Value + 65); + Point point18 = new Point(_startPosX.Value + 110, _startPosY.Value + 65); + Point point19 = new Point(_startPosX.Value + 115, _startPosY.Value + 45); Point[] Wings4 = { point16, point17, point18, point19 }; g.DrawPolygon(pen, Wings4); g.FillPolygon(br, Wings4);