Готовая 1 лаба

This commit is contained in:
nikbel2004@outlook.com 2023-09-13 17:11:16 +04:00
parent ce4b2141be
commit 72a71f346b
2 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace Tank
{
internal class DrawingTank
public class DrawingTank
{
public EntityTank Tank { get; set; }
private int _startPosX;
@ -83,10 +83,12 @@ namespace Tank
}
Pen pen = new(Color.Black);
// Отрисовка танковых катков
Brush BrushBlack = new SolidBrush(Color.Black);
g.FillEllipse(BrushBlack, _startPosX + 113, _startPosY + 41, 11, 11);
g.FillEllipse(BrushBlack, _startPosX + 13, _startPosY + 40, 11, 11);
// Гусеница
Brush BrushGray = new SolidBrush(Color.DarkGray);
g.DrawEllipse(pen, _startPosX + 10, _startPosY + 30, 120, 30);

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace Tank
{
internal class EntityTank
public class EntityTank
{
public int Speed { get; private set; }
public float Weight { get; private set; }