diff --git a/Cruiser/Cruiser/DirectionType.cs b/Cruiser/Cruiser/DirectionType.cs
new file mode 100644
index 0000000..480399f
--- /dev/null
+++ b/Cruiser/Cruiser/DirectionType.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Cruiser
+{
+ internal enum DirectionType
+ {
+ Up = 1,
+
+ Down = 2,
+
+ Left = 3,
+
+ Right = 4
+ }
+}
diff --git a/Cruiser/Cruiser/DrawningCruiser.cs b/Cruiser/Cruiser/DrawningCruiser.cs
new file mode 100644
index 0000000..fb5d921
--- /dev/null
+++ b/Cruiser/Cruiser/DrawningCruiser.cs
@@ -0,0 +1,157 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Cruiser
+{
+ internal class DrawningCruiser
+ {
+ public EntityCruiser? EntityCruiser { get; private set; }
+
+ private int _pictureWidth;
+
+ private int _pictureHeight;
+
+ private int _startPosX;
+
+ private int _startPosY;
+
+ private readonly int _cruiserWidth = 150;
+
+ private readonly int _cruiserHeight = 50;
+
+ public bool Init(int speed, double weight, Color bodyColor, Color
+additionalColor, bool vert, bool rocket, int width, int height)
+ {
+
+ if (width < _pictureWidth || height < _pictureHeight)
+ {
+ return false;
+ }
+ _pictureWidth = width;
+ _pictureHeight = height;
+ EntityCruiser = new EntityCruiser();
+ EntityCruiser.Init(speed, weight, bodyColor, additionalColor, vert, rocket);
+ return true;
+ }
+
+ public void SetPosition(int x, int y)
+ {
+ if (x <= _pictureWidth - _cruiserWidth && y <= _pictureHeight - _cruiserHeight)
+ {
+ _startPosX = x;
+ _startPosY = y;
+ }
+ }
+
+ public void MoveTransport(DirectionType direction)
+ {
+ if (EntityCruiser == null)
+ {
+ return;
+ }
+ switch (direction)
+ {
+ case DirectionType.Left:
+ if (_startPosX - EntityCruiser.Step > 0)
+ {
+ _startPosX -= (int)EntityCruiser.Step;
+ }
+ else if (_startPosX - EntityCruiser.Step < 0)
+ {
+ _startPosX = _startPosX - _startPosX + 3;
+ }
+ break;
+
+ case DirectionType.Up:
+ if (_startPosY - EntityCruiser.Step > 0)
+ {
+ _startPosY -= (int)EntityCruiser.Step;
+ }
+ else if (_startPosY - EntityCruiser.Step < 0)
+ {
+ _startPosY = _startPosY - _startPosY + 0;
+ }
+ break;
+
+ case DirectionType.Right:
+ if (_startPosX + EntityCruiser.Step + _cruiserWidth < _pictureWidth)
+ {
+ _startPosX += (int)EntityCruiser.Step;
+ }
+ else if (_startPosX + EntityCruiser.Step + _cruiserWidth > _pictureWidth)
+ {
+ _startPosX += _pictureWidth - _startPosX - _cruiserWidth;
+ }
+ break;
+
+ case DirectionType.Down:
+ if (_startPosY + EntityCruiser.Step + _cruiserHeight < _pictureHeight)
+ {
+ _startPosY += (int)EntityCruiser.Step;
+ }
+ else if (_startPosY + EntityCruiser.Step + _cruiserHeight > _pictureHeight)
+ {
+ _startPosY += _pictureHeight - _startPosY - _cruiserHeight;
+ }
+ break;
+ }
+ }
+
+ public void DrawTransport(Graphics g)
+ {
+ if (EntityCruiser == null)
+ {
+ return;
+ }
+ Pen pen = new(Color.Black);
+ Brush additionalBrush = new SolidBrush(EntityCruiser.AdditionalColor);
+ Brush BodyColor = new SolidBrush(EntityCruiser.BodyColor);
+
+ GraphicsPath path1 = new GraphicsPath();
+ path1.AddLine(_startPosX + 100, _startPosY + 0, _startPosX + 0, _startPosY + 0);
+ path1.AddLine(_startPosX + 0, _startPosY + 50, _startPosX + 0, _startPosY + 0);
+ path1.AddLine(_startPosX + 0, _startPosY + 50, _startPosX + 100, _startPosY + 50);
+ path1.AddLine(_startPosX + 100, _startPosY + 50, _startPosX + 150, _startPosY + 25);
+ path1.AddLine(_startPosX + 100, _startPosY + 0, _startPosX + 150, _startPosY + 25);
+
+ g.FillPath(additionalBrush, path1);
+ g.DrawPath(pen, path1);
+
+ Brush brBlack = new SolidBrush(Color.Black);
+
+ g.DrawRectangle(pen, _startPosX - 3, _startPosY + 7, 3, 15);
+ g.FillRectangle(brBlack, _startPosX - 3, _startPosY + 7, 3, 15);
+ g.DrawRectangle(pen, _startPosX - 3, _startPosY + 25, 3, 15);
+ g.FillRectangle(brBlack, _startPosX - 3, _startPosY + 25, 3, 15);
+
+ g.DrawRectangle(pen, _startPosX + 60, _startPosY + 12, 20, 25);
+ g.FillRectangle(brBlack, _startPosX + 60, _startPosY + 12, 20, 25);
+ g.DrawRectangle(pen, _startPosX + 30, _startPosY + 19, 30, 13);
+ g.FillRectangle(brBlack, _startPosX + 30, _startPosY + 19, 30, 13);
+
+ if (EntityCruiser.Vert)
+ {
+ Brush brRed = new SolidBrush(Color.Red);
+ g.FillEllipse(brRed, _startPosX + 95, _startPosY + 15, 20, 20);
+ g.DrawEllipse(pen, _startPosX + 95, _startPosY + 15, 20, 20);
+ }
+
+ if (EntityCruiser.Rocket)
+ {
+ g.DrawEllipse(pen, _startPosX + 8, _startPosY + 3, 15, 12);
+ g.FillEllipse(brBlack, _startPosX + 8, _startPosY + 3, 15, 12);
+
+ g.DrawEllipse(pen, _startPosX + 8, _startPosY + 18, 15, 12);
+ g.FillEllipse(brBlack, _startPosX + 8, _startPosY + 18, 15, 12);
+
+ g.DrawEllipse(pen, _startPosX + 8, _startPosY + 33, 15, 12);
+ g.FillEllipse(brBlack, _startPosX + 8, _startPosY + 33, 15, 12);
+ }
+ }
+ }
+}
+
diff --git a/Cruiser/Cruiser/EntityCruiser.cs b/Cruiser/Cruiser/EntityCruiser.cs
new file mode 100644
index 0000000..3971b80
--- /dev/null
+++ b/Cruiser/Cruiser/EntityCruiser.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Cruiser
+{
+ internal class EntityCruiser
+ {
+ public int Speed { get; private set; }
+
+ public double Weight { get; private set; }
+
+ public Color BodyColor { get; private set; }
+
+ public Color AdditionalColor { get; private set; }
+
+ public bool Vert { get; private set; }
+
+ public bool Rocket { get; private set; }
+
+ public double Step => (double)Speed * 100 / Weight;
+
+ public void Init(int speed, double weight, Color bodyColor, Color
+ additionalColor, bool vert, bool rocket)
+ {
+ Speed = speed;
+ Weight = weight;
+ BodyColor = bodyColor;
+ AdditionalColor = additionalColor;
+
+ Vert = vert;
+ Rocket = rocket;
+ }
+ }
+}
diff --git a/Cruiser/Cruiser/Form1.Designer.cs b/Cruiser/Cruiser/Form1.Designer.cs
deleted file mode 100644
index 95fc312..0000000
--- a/Cruiser/Cruiser/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace Cruiser
-{
- partial class Form1
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(800, 450);
- this.Text = "Form1";
- }
-
- #endregion
- }
-}
\ No newline at end of file
diff --git a/Cruiser/Cruiser/Form1.cs b/Cruiser/Cruiser/Form1.cs
deleted file mode 100644
index cda6114..0000000
--- a/Cruiser/Cruiser/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace Cruiser
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
\ No newline at end of file
diff --git a/Cruiser/Cruiser/FormCruiser.Designer.cs b/Cruiser/Cruiser/FormCruiser.Designer.cs
new file mode 100644
index 0000000..2958a8d
--- /dev/null
+++ b/Cruiser/Cruiser/FormCruiser.Designer.cs
@@ -0,0 +1,137 @@
+namespace Cruiser
+{
+ partial class FormCruiser
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.pictureBoxCruiser = new System.Windows.Forms.PictureBox();
+ this.buttonCreate = new System.Windows.Forms.Button();
+ this.buttonUp = new System.Windows.Forms.Button();
+ this.buttonLeft = new System.Windows.Forms.Button();
+ this.buttonDown = new System.Windows.Forms.Button();
+ this.buttonRight = new System.Windows.Forms.Button();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBoxCruiser)).BeginInit();
+ this.SuspendLayout();
+ //
+ // pictureBoxCruiser
+ //
+ this.pictureBoxCruiser.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.pictureBoxCruiser.Location = new System.Drawing.Point(0, 0);
+ this.pictureBoxCruiser.Name = "pictureBoxCruiser";
+ this.pictureBoxCruiser.Size = new System.Drawing.Size(800, 450);
+ this.pictureBoxCruiser.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBoxCruiser.TabIndex = 0;
+ this.pictureBoxCruiser.TabStop = false;
+ //
+ // buttonCreate
+ //
+ this.buttonCreate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.buttonCreate.Location = new System.Drawing.Point(12, 408);
+ this.buttonCreate.Name = "buttonCreate";
+ this.buttonCreate.Size = new System.Drawing.Size(83, 30);
+ this.buttonCreate.TabIndex = 1;
+ this.buttonCreate.Text = "Создать";
+ this.buttonCreate.UseVisualStyleBackColor = true;
+ this.buttonCreate.Click += new System.EventHandler(this.buttonCreate_Click);
+ //
+ // buttonUp
+ //
+ this.buttonUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonUp.BackgroundImage = global::Cruiser.Properties.Resources.вверх;
+ this.buttonUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.buttonUp.Location = new System.Drawing.Point(720, 372);
+ this.buttonUp.Name = "buttonUp";
+ this.buttonUp.Size = new System.Drawing.Size(30, 30);
+ this.buttonUp.TabIndex = 2;
+ this.buttonUp.UseVisualStyleBackColor = true;
+ this.buttonUp.Click += new System.EventHandler(this.buttonMove_Click);
+ //
+ // buttonLeft
+ //
+ this.buttonLeft.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonLeft.BackgroundImage = global::Cruiser.Properties.Resources.влево;
+ this.buttonLeft.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.buttonLeft.Location = new System.Drawing.Point(684, 408);
+ this.buttonLeft.Name = "buttonLeft";
+ this.buttonLeft.Size = new System.Drawing.Size(30, 30);
+ this.buttonLeft.TabIndex = 3;
+ this.buttonLeft.UseVisualStyleBackColor = true;
+ this.buttonLeft.Click += new System.EventHandler(this.buttonMove_Click);
+ //
+ // buttonDown
+ //
+ this.buttonDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonDown.BackgroundImage = global::Cruiser.Properties.Resources.вниз;
+ this.buttonDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.buttonDown.Location = new System.Drawing.Point(720, 408);
+ this.buttonDown.Name = "buttonDown";
+ this.buttonDown.Size = new System.Drawing.Size(30, 30);
+ this.buttonDown.TabIndex = 4;
+ this.buttonDown.UseVisualStyleBackColor = true;
+ this.buttonDown.Click += new System.EventHandler(this.buttonMove_Click);
+ //
+ // buttonRight
+ //
+ this.buttonRight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonRight.BackgroundImage = global::Cruiser.Properties.Resources.вправо;
+ this.buttonRight.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.buttonRight.Location = new System.Drawing.Point(756, 408);
+ this.buttonRight.Name = "buttonRight";
+ this.buttonRight.Size = new System.Drawing.Size(30, 30);
+ this.buttonRight.TabIndex = 5;
+ this.buttonRight.UseVisualStyleBackColor = true;
+ this.buttonRight.Click += new System.EventHandler(this.buttonMove_Click);
+ //
+ // FormCruiser
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Controls.Add(this.buttonRight);
+ this.Controls.Add(this.buttonDown);
+ this.Controls.Add(this.buttonLeft);
+ this.Controls.Add(this.buttonUp);
+ this.Controls.Add(this.buttonCreate);
+ this.Controls.Add(this.pictureBoxCruiser);
+ this.Name = "FormCruiser";
+ this.Text = "FormCruiser";
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBoxCruiser)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private PictureBox pictureBoxCruiser;
+ private Button buttonCreate;
+ private Button buttonUp;
+ private Button buttonLeft;
+ private Button buttonDown;
+ private Button buttonRight;
+ }
+}
\ No newline at end of file
diff --git a/Cruiser/Cruiser/FormCruiser.cs b/Cruiser/Cruiser/FormCruiser.cs
new file mode 100644
index 0000000..0cee200
--- /dev/null
+++ b/Cruiser/Cruiser/FormCruiser.cs
@@ -0,0 +1,69 @@
+using System.Windows.Forms;
+
+namespace Cruiser
+{
+ public partial class FormCruiser : Form
+ {
+ private DrawningCruiser? _drawningCruiser;
+
+ public FormCruiser()
+ {
+ InitializeComponent();
+ }
+
+ private void Draw()
+ {
+ if (_drawningCruiser == null)
+ {
+ return;
+ }
+ Bitmap bmp = new(pictureBoxCruiser.Width,
+ pictureBoxCruiser.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _drawningCruiser.DrawTransport(gr);
+ pictureBoxCruiser.Image = bmp;
+ }
+
+ private void buttonCreate_Click(object sender, EventArgs e)
+ {
+ Random random = new();
+ _drawningCruiser = new DrawningCruiser();
+ _drawningCruiser.Init(random.Next(100, 300),
+ random.Next(1000, 3000),
+ Color.FromArgb(random.Next(0, 256), random.Next(0, 256),
+ random.Next(0, 256)),
+ Color.FromArgb(random.Next(0, 256), random.Next(0, 256),
+ random.Next(0, 256)),
+
+ Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2)), pictureBoxCruiser.Width, pictureBoxCruiser.Height);
+ _drawningCruiser.SetPosition(random.Next(10, 100),
+ random.Next(10, 100));
+ Draw();
+ }
+
+ private void buttonMove_Click(object sender, EventArgs e)
+ {
+ if (_drawningCruiser == null)
+ {
+ return;
+ }
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ switch (name)
+ {
+ case "buttonUp":
+ _drawningCruiser.MoveTransport(DirectionType.Up);
+ break;
+ case "buttonDown":
+ _drawningCruiser.MoveTransport(DirectionType.Down);
+ break;
+ case "buttonLeft":
+ _drawningCruiser.MoveTransport(DirectionType.Left);
+ break;
+ case "buttonRight":
+ _drawningCruiser.MoveTransport(DirectionType.Right);
+ break;
+ }
+ Draw();
+ }
+ }
+}
\ No newline at end of file
diff --git a/Cruiser/Cruiser/FormCruiser.resx b/Cruiser/Cruiser/FormCruiser.resx
new file mode 100644
index 0000000..f298a7b
--- /dev/null
+++ b/Cruiser/Cruiser/FormCruiser.resx
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/Cruiser/Cruiser/Program.cs b/Cruiser/Cruiser/Program.cs
index d0f2665..626bc14 100644
--- a/Cruiser/Cruiser/Program.cs
+++ b/Cruiser/Cruiser/Program.cs
@@ -11,7 +11,7 @@ namespace Cruiser
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
- Application.Run(new Form1());
+ Application.Run(new FormCruiser());
}
}
}
\ No newline at end of file
diff --git a/Cruiser/Cruiser/Properties/Resources.Designer.cs b/Cruiser/Cruiser/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..d06e6fd
--- /dev/null
+++ b/Cruiser/Cruiser/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace Cruiser.Properties {
+ using System;
+
+
+ ///
+ /// Класс ресурса со строгой типизацией для поиска локализованных строк и т.д.
+ ///
+ // Этот класс создан автоматически классом StronglyTypedResourceBuilder
+ // с помощью такого средства, как ResGen или Visual Studio.
+ // Чтобы добавить или удалить член, измените файл .ResX и снова запустите ResGen
+ // с параметром /str или перестройте свой проект VS.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Возвращает кэшированный экземпляр ResourceManager, использованный этим классом.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Cruiser.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Перезаписывает свойство CurrentUICulture текущего потока для всех
+ /// обращений к ресурсу с помощью этого класса ресурса со строгой типизацией.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap вверх {
+ get {
+ object obj = ResourceManager.GetObject("вверх", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap влево {
+ get {
+ object obj = ResourceManager.GetObject("влево", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap вниз {
+ get {
+ object obj = ResourceManager.GetObject("вниз", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap вправо {
+ get {
+ object obj = ResourceManager.GetObject("вправо", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/Cruiser/Cruiser/Form1.resx b/Cruiser/Cruiser/Properties/Resources.resx
similarity index 83%
rename from Cruiser/Cruiser/Form1.resx
rename to Cruiser/Cruiser/Properties/Resources.resx
index 1af7de1..22f6027 100644
--- a/Cruiser/Cruiser/Form1.resx
+++ b/Cruiser/Cruiser/Properties/Resources.resx
@@ -117,4 +117,17 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ ..\Resources\вверх.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\влево.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\вниз.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\вправо.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/Cruiser/Cruiser/Resources/вверх.jpg b/Cruiser/Cruiser/Resources/вверх.jpg
new file mode 100644
index 0000000..1111d56
Binary files /dev/null and b/Cruiser/Cruiser/Resources/вверх.jpg differ
diff --git a/Cruiser/Cruiser/Resources/влево.jpg b/Cruiser/Cruiser/Resources/влево.jpg
new file mode 100644
index 0000000..3ffd8ef
Binary files /dev/null and b/Cruiser/Cruiser/Resources/влево.jpg differ
diff --git a/Cruiser/Cruiser/Resources/вниз.jpg b/Cruiser/Cruiser/Resources/вниз.jpg
new file mode 100644
index 0000000..d83687a
Binary files /dev/null and b/Cruiser/Cruiser/Resources/вниз.jpg differ
diff --git a/Cruiser/Cruiser/Resources/вправо.jpg b/Cruiser/Cruiser/Resources/вправо.jpg
new file mode 100644
index 0000000..0cad4cf
Binary files /dev/null and b/Cruiser/Cruiser/Resources/вправо.jpg differ