исправление ошибок
This commit is contained in:
parent
d9cb14e5e4
commit
0e72047071
@ -93,6 +93,7 @@ additionalColor, bool motor, bool otsek)
|
||||
_startPosY = y;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Изменение направления перемещения
|
||||
/// </summary>
|
||||
@ -160,77 +161,77 @@ additionalColor, bool motor, bool otsek)
|
||||
|
||||
//корпус
|
||||
|
||||
g.FillRectangle(br, _startPosX.Value + 30, _startPosY.Value + 30, 150, 50);
|
||||
g.DrawRectangle(pen, _startPosX.Value + 30, _startPosY.Value + 30, 150, 50);
|
||||
g.FillRectangle(br, _startPosX.Value, _startPosY.Value + 30, 150, 50);
|
||||
g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 30, 150, 50);
|
||||
|
||||
//нос
|
||||
|
||||
Point[] nos = {
|
||||
new Point(_startPosX.Value + 180, _startPosY.Value + 30),
|
||||
new Point(_startPosX.Value + 180, _startPosY.Value + 80),
|
||||
new Point(_startPosX.Value + 215, _startPosY.Value + 55) };
|
||||
new Point(_startPosX.Value + 150, _startPosY.Value + 30),
|
||||
new Point(_startPosX.Value + 150, _startPosY.Value + 80),
|
||||
new Point(_startPosX.Value + 175, _startPosY.Value + 55) };
|
||||
g.FillPolygon(brBlack, nos);
|
||||
|
||||
//Крылья
|
||||
//крыло переднее
|
||||
Point[] krilo1 = {
|
||||
new Point(_startPosX.Value + 120, _startPosY.Value + 55),
|
||||
new Point(_startPosX.Value + 60, _startPosY.Value + 125),
|
||||
new Point(_startPosX.Value + 75, _startPosY.Value + 55)
|
||||
new Point(_startPosX.Value + 90, _startPosY.Value + 55),
|
||||
new Point(_startPosX.Value + 30, _startPosY.Value + 125),
|
||||
new Point(_startPosX.Value + 45, _startPosY.Value + 55)
|
||||
|
||||
};
|
||||
g.FillPolygon(br, krilo1);
|
||||
g.DrawLine(pen, _startPosX.Value + 120, _startPosY.Value + 55,
|
||||
_startPosX.Value + 60, _startPosY.Value + 125);
|
||||
g.DrawLine(pen, _startPosX.Value + 60, _startPosY.Value + 125,
|
||||
_startPosX.Value + 75, _startPosY.Value + 55);
|
||||
g.DrawLine(pen, _startPosX.Value + 90, _startPosY.Value + 55,
|
||||
_startPosX.Value + 30, _startPosY.Value + 125);
|
||||
g.DrawLine(pen, _startPosX.Value + 30, _startPosY.Value + 125,
|
||||
_startPosX.Value + 45, _startPosY.Value + 55);
|
||||
|
||||
//крыло сзади
|
||||
|
||||
Point[] krilo2 =
|
||||
{
|
||||
new Point(_startPosX.Value + 120, _startPosY.Value + 30),
|
||||
new Point(_startPosX.Value + 70, _startPosY.Value + 0),
|
||||
new Point(_startPosX.Value + 75, _startPosY.Value + 30)
|
||||
new Point(_startPosX.Value + 90, _startPosY.Value + 30),
|
||||
new Point(_startPosX.Value + 40, _startPosY.Value + 0),
|
||||
new Point(_startPosX.Value + 45, _startPosY.Value + 30)
|
||||
};
|
||||
g.FillPolygon(br, krilo2);
|
||||
g.DrawLine(pen, _startPosX.Value + 120, _startPosY.Value + 30,
|
||||
_startPosX.Value + 70, _startPosY.Value + 0);
|
||||
g.DrawLine(pen, _startPosX.Value + 70, _startPosY.Value + 0,
|
||||
_startPosX.Value + 75, _startPosY.Value + 30);
|
||||
g.DrawLine(pen, _startPosX.Value + 90, _startPosY.Value + 30,
|
||||
_startPosX.Value + 40, _startPosY.Value + 0);
|
||||
g.DrawLine(pen, _startPosX.Value + 40, _startPosY.Value + 0,
|
||||
_startPosX.Value + 45, _startPosY.Value + 30);
|
||||
|
||||
//хвост
|
||||
Point[] hvost =
|
||||
{
|
||||
new Point(_startPosX.Value + 65, _startPosY.Value + 30),
|
||||
new Point(_startPosX.Value + 40, _startPosY.Value + 10),
|
||||
new Point(_startPosX.Value + 30, _startPosY.Value + 10),
|
||||
new Point(_startPosX.Value + 30, _startPosY.Value + 30)
|
||||
new Point(_startPosX.Value + 35, _startPosY.Value + 30),
|
||||
new Point(_startPosX.Value + 10, _startPosY.Value + 10),
|
||||
new Point(_startPosX.Value, _startPosY.Value + 10),
|
||||
new Point(_startPosX.Value, _startPosY.Value + 30)
|
||||
|
||||
};
|
||||
g.FillPolygon(br, hvost);
|
||||
g.DrawLine(pen, _startPosX.Value + 65, _startPosY.Value + 30,
|
||||
_startPosX.Value + 40, _startPosY.Value + 10);
|
||||
g.DrawLine(pen, _startPosX.Value + 40, _startPosY.Value + 10,
|
||||
_startPosX.Value + 30, _startPosY.Value + 10);
|
||||
g.DrawLine(pen, _startPosX.Value + 30, _startPosY.Value + 10,
|
||||
_startPosX.Value + 30, _startPosY.Value + 30);
|
||||
g.FillRectangle(krlamp, _startPosX.Value + 30, _startPosY.Value + 6, 8, 4);
|
||||
g.DrawRectangle(pen, _startPosX.Value + 30, _startPosY.Value + 6, 8, 4);
|
||||
g.FillEllipse(brBlack, _startPosX.Value + 25, _startPosY.Value + 27, 40, 6);
|
||||
g.DrawLine(pen, _startPosX.Value + 35, _startPosY.Value + 30,
|
||||
_startPosX.Value + 10, _startPosY.Value + 10);
|
||||
g.DrawLine(pen, _startPosX.Value + 10, _startPosY.Value + 10,
|
||||
_startPosX.Value, _startPosY.Value + 10);
|
||||
g.DrawLine(pen, _startPosX.Value, _startPosY.Value + 10,
|
||||
_startPosX.Value, _startPosY.Value + 30);
|
||||
g.FillRectangle(krlamp, _startPosX.Value, _startPosY.Value + 6, 8, 4);
|
||||
g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 6, 8, 4);
|
||||
g.FillEllipse(brBlack, _startPosX.Value, _startPosY.Value + 27, 40, 6);
|
||||
|
||||
//колёса
|
||||
g.DrawLine(pen, _startPosX.Value + 50, _startPosY.Value + 80,
|
||||
_startPosX.Value + 50, _startPosY.Value + 90);
|
||||
g.DrawLine(pen, _startPosX.Value + 50, _startPosY.Value + 90,
|
||||
_startPosX.Value + 55, _startPosY.Value + 93);
|
||||
g.DrawLine(pen, _startPosX.Value + 50, _startPosY.Value + 90,
|
||||
_startPosX.Value + 45, _startPosY.Value + 93);
|
||||
g.FillEllipse(brBlack, _startPosX.Value + 52, _startPosY.Value + 90, 10, 10);
|
||||
g.FillEllipse(brBlack, _startPosX.Value + 38, _startPosY.Value + 90, 10, 10);
|
||||
g.DrawLine(pen, _startPosX.Value + 165, _startPosY.Value + 80,
|
||||
_startPosX.Value + 165, _startPosY.Value + 90);
|
||||
g.FillEllipse(brBlack, _startPosX.Value + 160, _startPosY.Value + 90, 10, 10);
|
||||
g.DrawLine(pen, _startPosX.Value + 20, _startPosY.Value + 80,
|
||||
_startPosX.Value + 20, _startPosY.Value + 90);
|
||||
g.DrawLine(pen, _startPosX.Value + 20, _startPosY.Value + 90,
|
||||
_startPosX.Value + 25, _startPosY.Value + 93);
|
||||
g.DrawLine(pen, _startPosX.Value + 20, _startPosY.Value + 90,
|
||||
_startPosX.Value + 15, _startPosY.Value + 93);
|
||||
g.FillEllipse(brBlack, _startPosX.Value + 22, _startPosY.Value + 90, 10, 10);
|
||||
g.FillEllipse(brBlack, _startPosX.Value + 8, _startPosY.Value + 90, 10, 10);
|
||||
g.DrawLine(pen, _startPosX.Value + 135, _startPosY.Value + 80,
|
||||
_startPosX.Value + 135, _startPosY.Value + 90);
|
||||
g.FillEllipse(brBlack, _startPosX.Value + 130, _startPosY.Value + 90, 10, 10);
|
||||
|
||||
//дополнительный отсек для пассажиров (опция)
|
||||
|
||||
@ -238,18 +239,18 @@ additionalColor, bool motor, bool otsek)
|
||||
{
|
||||
Point[] drOtsek =
|
||||
{
|
||||
new Point(_startPosX.Value + 180, _startPosY.Value + 30),
|
||||
new Point(_startPosX.Value + 160, _startPosY.Value + 15),
|
||||
new Point(_startPosX.Value + 150, _startPosY.Value + 30),
|
||||
new Point(_startPosX.Value + 130, _startPosY.Value + 15),
|
||||
new Point(_startPosX.Value + 130, _startPosY.Value + 30)
|
||||
new Point(_startPosX.Value + 100, _startPosY.Value + 15),
|
||||
new Point(_startPosX.Value + 100, _startPosY.Value + 30)
|
||||
};
|
||||
g.FillPolygon(brAdd, drOtsek);
|
||||
g.DrawLine(pen, _startPosX.Value + 180, _startPosY.Value + 30,
|
||||
_startPosX.Value + 160, _startPosY.Value + 15);
|
||||
g.DrawLine(pen, _startPosX.Value + 160, _startPosY.Value + 15,
|
||||
g.DrawLine(pen, _startPosX.Value + 150, _startPosY.Value + 30,
|
||||
_startPosX.Value + 130, _startPosY.Value + 15);
|
||||
g.DrawLine(pen, _startPosX.Value + 130, _startPosY.Value + 15,
|
||||
_startPosX.Value + 130, _startPosY.Value + 30);
|
||||
_startPosX.Value + 100, _startPosY.Value + 15);
|
||||
g.DrawLine(pen, _startPosX.Value + 100, _startPosY.Value + 15,
|
||||
_startPosX.Value + 100, _startPosY.Value + 30);
|
||||
}
|
||||
|
||||
//дополнительные двигатели (опция)
|
||||
@ -258,30 +259,30 @@ additionalColor, bool motor, bool otsek)
|
||||
{
|
||||
Point[] motors =
|
||||
{
|
||||
new Point(_startPosX.Value + 76, _startPosY.Value + 88),
|
||||
new Point(_startPosX.Value + 73 - 10, _startPosY.Value + 88 - 6),
|
||||
new Point(_startPosX.Value + 73 - 10, _startPosY.Value + 88 + 6),
|
||||
new Point(_startPosX.Value + 46, _startPosY.Value + 88),
|
||||
new Point(_startPosX.Value + 43 - 10, _startPosY.Value + 88 - 6),
|
||||
new Point(_startPosX.Value + 43 - 10, _startPosY.Value + 88 + 6),
|
||||
};
|
||||
g.FillPolygon(brAdd, motors);
|
||||
Point[] motors1 =
|
||||
{
|
||||
new Point(_startPosX.Value + 73, _startPosY.Value + 110),
|
||||
new Point(_startPosX.Value + 70 - 10, _startPosY.Value + 110 - 6),
|
||||
new Point(_startPosX.Value + 70 - 10, _startPosY.Value + 110 + 6),
|
||||
new Point(_startPosX.Value + 43, _startPosY.Value + 110),
|
||||
new Point(_startPosX.Value + 40 - 10, _startPosY.Value + 110 - 6),
|
||||
new Point(_startPosX.Value + 40 - 10, _startPosY.Value + 110 + 6),
|
||||
};
|
||||
g.FillPolygon(brAdd, motors1);
|
||||
Point[] motors2 =
|
||||
{
|
||||
new Point(_startPosX.Value + 79, _startPosY.Value + 22),
|
||||
new Point(_startPosX.Value + 76 - 10, _startPosY.Value + 22 - 6),
|
||||
new Point(_startPosX.Value + 76 - 10, _startPosY.Value + 22 + 6),
|
||||
new Point(_startPosX.Value + 49, _startPosY.Value + 22),
|
||||
new Point(_startPosX.Value + 46 - 10, _startPosY.Value + 22 - 6),
|
||||
new Point(_startPosX.Value + 46 - 10, _startPosY.Value + 22 + 6),
|
||||
};
|
||||
g.FillPolygon(brAdd, motors2);
|
||||
Point[] motors22 =
|
||||
{
|
||||
new Point(_startPosX.Value + 79, _startPosY.Value + 9),
|
||||
new Point(_startPosX.Value + 76 - 10, _startPosY.Value + 9 - 6),
|
||||
new Point(_startPosX.Value + 76 - 10, _startPosY.Value + 9 + 6),
|
||||
new Point(_startPosX.Value + 49, _startPosY.Value + 9),
|
||||
new Point(_startPosX.Value + 46 - 10, _startPosY.Value + 9 - 6),
|
||||
new Point(_startPosX.Value + 46 - 10, _startPosY.Value + 9 + 6),
|
||||
};
|
||||
g.FillPolygon(brAdd, motors22);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user