Готовая 1 лаба
This commit is contained in:
parent
ce4b2141be
commit
72a71f346b
@ -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);
|
||||
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user