Лабораторная1(ФинальныйФинал)
This commit is contained in:
parent
5097475d5d
commit
69a8cc5ae4
@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Projekt;
|
||||
/// <summary>
|
||||
/// Направление перемещения
|
||||
|
@ -26,11 +26,11 @@ public class DrawingTank
|
||||
/// <summary>
|
||||
/// Ширина прорисовки танка
|
||||
/// </summary>
|
||||
private readonly int _drawningTankWidth = 160;
|
||||
private readonly int _drawningTankWidth = 150;
|
||||
/// <summary>
|
||||
/// Высота прорисовки танка
|
||||
/// </summary>
|
||||
private readonly int _drawningTankHeight = 60;
|
||||
private readonly int _drawningTankHeight = 62;
|
||||
/// <summary>
|
||||
/// Инициализация свойств
|
||||
/// </summary>
|
||||
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user