diff --git a/Projekt/Projekt/DirectionType.cs b/Projekt/Projekt/DirectionType.cs index baa2bcb..6874086 100644 --- a/Projekt/Projekt/DirectionType.cs +++ b/Projekt/Projekt/DirectionType.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - + namespace Projekt; /// /// Направление перемещения diff --git a/Projekt/Projekt/DrawingTank.cs b/Projekt/Projekt/DrawingTank.cs index b699a24..308729e 100644 --- a/Projekt/Projekt/DrawingTank.cs +++ b/Projekt/Projekt/DrawingTank.cs @@ -26,11 +26,11 @@ public class DrawingTank /// /// Ширина прорисовки танка /// - private readonly int _drawningTankWidth = 160; + private readonly int _drawningTankWidth = 150; /// /// Высота прорисовки танка /// - private readonly int _drawningTankHeight = 60; + private readonly int _drawningTankHeight = 62; /// /// Инициализация свойств /// @@ -145,7 +145,7 @@ public class DrawingTank if (_startPosY.Value + _drawningTankHeight < _pictureHeight) { _startPosY += (int)EntityTank.Step; - } + } return true; default: return false; @@ -166,10 +166,10 @@ public class DrawingTank //пушка if (EntityTank.TankTurret) { - g.FillRectangle(MainBrush, _startPosX.Value + 70, _startPosY.Value + 15, 80, 8); - g.FillRectangle(MainBrush, _startPosX.Value + 140, _startPosY.Value + 14, 10, 10); - g.FillRectangle(brWhite, _startPosX.Value + 143, _startPosY.Value + 16, 5, 2); - g.FillRectangle(brWhite, _startPosX.Value + 143, _startPosY.Value + 20, 5, 2); + g.FillRectangle(MainBrush, _startPosX.Value + 70, _startPosY.Value + 15, 70, 8); + g.FillRectangle(MainBrush, _startPosX.Value + 130, _startPosY.Value + 14, 10, 10); + g.FillRectangle(brWhite, _startPosX.Value + 133, _startPosY.Value + 16, 5, 2); + g.FillRectangle(brWhite, _startPosX.Value + 133, _startPosY.Value + 20, 5, 2); } //границы танка g.FillRectangle(MainBrush, _startPosX.Value + 20, _startPosY.Value + 10, 50, 20); diff --git a/Projekt/Projekt/FormTank.cs b/Projekt/Projekt/FormTank.cs index 883e4ba..8c7de24 100644 --- a/Projekt/Projekt/FormTank.cs +++ b/Projekt/Projekt/FormTank.cs @@ -1,13 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - + namespace Projekt { public partial class FormTank : Form