diff --git a/ProjectMotorBoat/ProjectMotorBoat/DirectionType.cs b/ProjectMotorBoat/ProjectMotorBoat/DirectionType.cs new file mode 100644 index 0000000..b88b3ef --- /dev/null +++ b/ProjectMotorBoat/ProjectMotorBoat/DirectionType.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectMotorBoat; +/// +/// Направление перечисления +/// +public enum DirectionType +{ + /// + /// вверх + /// + Up=1, + + /// + /// вниз + /// + Down = 2, + + /// + /// влево + /// + Left = 3, + + /// + /// вправо + /// + Right = 4, +} diff --git a/ProjectMotorBoat/ProjectMotorBoat/DrawningMotorBoat.cs b/ProjectMotorBoat/ProjectMotorBoat/DrawningMotorBoat.cs new file mode 100644 index 0000000..6c2d19f --- /dev/null +++ b/ProjectMotorBoat/ProjectMotorBoat/DrawningMotorBoat.cs @@ -0,0 +1,243 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectMotorBoat; +/// +/// класс, отвечающий за прорисовку и перемещение объекта-сущности +/// +public class DrawningMotorBoat +{ + /// + /// класс-сущность + /// + public EntityMotorBoat? EntityMotorBoat { get; private set; } + + /// + /// ширина окна + /// + private int? _pictureWidth; + + /// + /// Высота окна + /// + private int? _pictureHeight; + + /// + /// Левая координата прорисовки лодки + /// + private int? _startPosX; + + /// + /// Верхняя координата прорисовки лодки + /// + private int? _startPosY; + + /// + /// Ширина прорисовки лодки + /// + private readonly int _drawningBoatWidth = 140; + + /// + /// Высота прорисовки лодки + /// + private readonly int _drawningBoatHeight = 70; + + /// + /// Инициализация свойств + /// + /// Скорость + /// Вес + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия двигателя + /// Признак наличия стекла + public void Init(int speed, int weight, Color bodyColor, Color additionalColor, bool engine, bool glass) + { + EntityMotorBoat = new EntityMotorBoat(); + EntityMotorBoat.Init(speed, weight, bodyColor, additionalColor, engine, glass); + _pictureWidth = null; + _pictureHeight = null; + } + + /// + /// Установка границ поля + /// + /// Ширина поля + /// Высота поля + /// true - границы заданы, false - проверка не пройдена, нельзя разместить объект в этих размерах + public bool SetPictureSize(int width, int height) + { + // TODO проверка, что объект "влезает" в размеры поля + // если влезает, сохраняем границы и корректируем позицию объекта, если она была уже установлена + _pictureWidth = width; + _pictureHeight = height; + if (_startPosX.HasValue || _startPosY.HasValue) + { + if (_startPosX + _drawningBoatWidth > _pictureWidth) + { + _startPosX = _pictureWidth - _drawningBoatWidth; + } + else if (_startPosX < 0) + { + _startPosX = 0; + } + if (_startPosY + _drawningBoatHeight > _pictureHeight) + { + _startPosY = _pictureHeight - _drawningBoatHeight; + } + else if (_startPosY < 0) + { + _startPosY = 0; + } + } + return true; + } + /// + /// Установка позиции + /// + /// Координата X + /// Координата Y + /// Ширина + /// Высота + public void SetPosition(int x, int y) + { + if (!_pictureHeight.HasValue || !_pictureWidth.HasValue) + { + return; + } + // TODO если при установке объекта в эти координаты, он будет "выходить" за границы формы то надо изменить координаты, чтобы он оставался в этих границах + _startPosX = x; + _startPosY = y; + + if (x + _drawningBoatWidth > _pictureWidth) + { + _startPosX = _pictureWidth - _drawningBoatWidth; + } + else if (x < 0) + { + _startPosX = 0; + } + else + { + _startPosX = x; + } + if (y + _drawningBoatHeight > _pictureHeight) + { + _startPosY = _pictureHeight - _drawningBoatHeight; + } + else if (y < 0) + { + _startPosY = 0; + } + else + { + _startPosY = y; + } + } + + + + /// + /// Изменение направления перемещения + /// + /// Направление + /// true - перемещене выполнено, false - перемещение невозможно + public bool MoveTransport(DirectionType direction) + { + if (EntityMotorBoat == null || !_startPosX.HasValue || !_startPosY.HasValue) + { + return false; + } + switch (direction) + { + //влево + case DirectionType.Left: + if (_startPosX.Value - EntityMotorBoat.Step > 0) + { + _startPosX -= (int)EntityMotorBoat.Step; + + } + return true; + //вверх + case DirectionType.Up: + if (_startPosY.Value - EntityMotorBoat.Step > 0) + { + _startPosY -= (int)EntityMotorBoat.Step; + } + return true; + // вправо + case DirectionType.Right: + //todo + if (_startPosX.Value + EntityMotorBoat.Step + _drawningBoatWidth < _pictureWidth) + { + _startPosX += (int)EntityMotorBoat.Step; + } + return true; + //вниз + case DirectionType.Down: + //TODO + if (_startPosY.Value + EntityMotorBoat.Step + _drawningBoatHeight < _pictureHeight) + { + _startPosY += (int)EntityMotorBoat.Step; + } + + return true; + default: + return false; + } + } + /// + /// Прорисовка объекта + /// + /// + public void DrawTransport(Graphics g) + { + if (_startPosX < 0 || _startPosY < 0 || !_pictureHeight.HasValue || !_pictureWidth.HasValue) + { + return; + } + Pen pen = new(Color.Black, 1); + Brush mainBrush = new SolidBrush(EntityMotorBoat.BodyColor); + + // корпус + Point[] hull = new Point[] + { + new Point((int)_startPosX + 5, (int)_startPosY + 0), + new Point((int) _startPosX + 100, (int) _startPosY + 0), + new Point((int) _startPosX + 140, (int) _startPosY + 35), + new Point((int) _startPosX + 100, (int) _startPosY + 70), + new Point((int) _startPosX + 5, (int) _startPosY + 70), + }; + g.FillPolygon(mainBrush, hull); + g.DrawPolygon(pen, hull); + + // стекло впереди + if (EntityMotorBoat.Glass) + { + Brush glassBrush = new SolidBrush(Color.LightBlue); + g.FillEllipse(glassBrush, (int)_startPosX + 20, (int)_startPosY + 15, 100, 40); + g.DrawEllipse(pen, (int)_startPosX + 20, (int)_startPosY + 15, 100, 40); + } + + // осн часть + Brush blockBrush = new SolidBrush(EntityMotorBoat.AdditionalColor); + g.FillRectangle(blockBrush, (int)_startPosX + 20, (int)_startPosY + 15, 80, 40); + g.DrawRectangle(pen, (int)_startPosX + 20, (int)_startPosY + 15, 80, 40); + + // двигатель + if (EntityMotorBoat.Engine) + { + Brush engineBrush = new + SolidBrush(EntityMotorBoat.AdditionalColor); + g.FillRectangle(engineBrush, (int)_startPosX + 0, (int)_startPosY + 10, 5, 50); + g.DrawRectangle(pen, (int)_startPosX + 0, (int)_startPosY + 10, 5, 50); + } + + + } + +} diff --git a/ProjectMotorBoat/ProjectMotorBoat/EntityMotorBoat.cs b/ProjectMotorBoat/ProjectMotorBoat/EntityMotorBoat.cs new file mode 100644 index 0000000..b1f4c70 --- /dev/null +++ b/ProjectMotorBoat/ProjectMotorBoat/EntityMotorBoat.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectMotorBoat; + +/// +/// Класс-сущность "Моторная Лодка" +/// +public class EntityMotorBoat +{ + /// + /// Скорость + /// + public int Speed { get; private set; } + /// + /// Вес + /// + public float Weight { get; private set; } + /// + /// Основной цвет + /// + public Color BodyColor { get; private set; } + /// + /// Дополнительный цвет + /// + public Color AdditionalColor { get; private set; } + /// + /// признак (опция) наличия двигателя + /// + public bool Engine { get; private set; } + /// + /// признак (опция) наличия стекла + /// + public bool Glass { get; private set; } + /// + /// шаг + /// + public float Step => Speed * 100 / Weight; + + /// + /// Инициализация полей объекта-класса Моторной лодки + /// + /// Скорость + /// Вес лодки + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия двигателя + /// Признак наличия стекла + + public void Init(int speed, float weight, Color bodyColor, Color additionalColor, bool engine, bool glass) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + Engine = engine; + Glass = glass; + } +} + diff --git a/ProjectMotorBoat/ProjectMotorBoat/Form1.Designer.cs b/ProjectMotorBoat/ProjectMotorBoat/Form1.Designer.cs deleted file mode 100644 index 30eb6a6..0000000 --- a/ProjectMotorBoat/ProjectMotorBoat/Form1.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace ProjectMotorBoat -{ - 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 - } -} diff --git a/ProjectMotorBoat/ProjectMotorBoat/Form1.cs b/ProjectMotorBoat/ProjectMotorBoat/Form1.cs deleted file mode 100644 index 5442f56..0000000 --- a/ProjectMotorBoat/ProjectMotorBoat/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace ProjectMotorBoat -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} diff --git a/ProjectMotorBoat/ProjectMotorBoat/FormMotorBoat.Designer.cs b/ProjectMotorBoat/ProjectMotorBoat/FormMotorBoat.Designer.cs new file mode 100644 index 0000000..034e96c --- /dev/null +++ b/ProjectMotorBoat/ProjectMotorBoat/FormMotorBoat.Designer.cs @@ -0,0 +1,135 @@ +namespace ProjectMotorBoat +{ + partial class FormMotorBoat + { + /// + /// 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() + { + pictureBoxMotorBoat = new PictureBox(); + buttonCreateMotorBoat = new Button(); + buttonUp = new Button(); + buttonDown = new Button(); + buttonLeft = new Button(); + buttonRight = new Button(); + ((System.ComponentModel.ISupportInitialize)pictureBoxMotorBoat).BeginInit(); + SuspendLayout(); + // + // pictureBoxMotorBoat + // + pictureBoxMotorBoat.Dock = DockStyle.Fill; + pictureBoxMotorBoat.Location = new Point(0, 0); + pictureBoxMotorBoat.Name = "pictureBoxMotorBoat"; + pictureBoxMotorBoat.Size = new Size(898, 475); + pictureBoxMotorBoat.TabIndex = 0; + pictureBoxMotorBoat.TabStop = false; + // + // buttonCreateMotorBoat + // + buttonCreateMotorBoat.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + buttonCreateMotorBoat.Location = new Point(18, 445); + buttonCreateMotorBoat.Name = "buttonCreateMotorBoat"; + buttonCreateMotorBoat.Size = new Size(75, 23); + buttonCreateMotorBoat.TabIndex = 1; + buttonCreateMotorBoat.Text = "Создать"; + buttonCreateMotorBoat.UseVisualStyleBackColor = true; + buttonCreateMotorBoat.Click += ButtonCreateMotorBoat_Click; + // + // buttonUp + // + buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonUp.BackgroundImage = Properties.Resources.up; + buttonUp.BackgroundImageLayout = ImageLayout.Stretch; + buttonUp.Location = new Point(799, 382); + buttonUp.Name = "buttonUp"; + buttonUp.Size = new Size(35, 35); + buttonUp.TabIndex = 2; + buttonUp.UseVisualStyleBackColor = true; + buttonUp.Click += ButtonMove_Click; + // + // buttonDown + // + buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonDown.BackgroundImage = Properties.Resources.down; + buttonDown.BackgroundImageLayout = ImageLayout.Stretch; + buttonDown.Location = new Point(799, 423); + buttonDown.Name = "buttonDown"; + buttonDown.Size = new Size(35, 35); + buttonDown.TabIndex = 3; + buttonDown.UseVisualStyleBackColor = true; + buttonDown.Click += ButtonMove_Click; + // + // buttonLeft + // + buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonLeft.BackgroundImage = Properties.Resources.left; + buttonLeft.BackgroundImageLayout = ImageLayout.Stretch; + buttonLeft.Location = new Point(758, 423); + buttonLeft.Name = "buttonLeft"; + buttonLeft.Size = new Size(35, 35); + buttonLeft.TabIndex = 4; + buttonLeft.UseVisualStyleBackColor = true; + buttonLeft.Click += ButtonMove_Click; + // + // buttonRight + // + buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonRight.BackgroundImage = Properties.Resources.right; + buttonRight.BackgroundImageLayout = ImageLayout.Stretch; + buttonRight.Location = new Point(840, 423); + buttonRight.Name = "buttonRight"; + buttonRight.Size = new Size(35, 35); + buttonRight.TabIndex = 5; + buttonRight.UseVisualStyleBackColor = true; + buttonRight.Click += ButtonMove_Click; + // + // FormMotorBoat + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(898, 475); + Controls.Add(buttonRight); + Controls.Add(buttonLeft); + Controls.Add(buttonDown); + Controls.Add(buttonUp); + Controls.Add(buttonCreateMotorBoat); + Controls.Add(pictureBoxMotorBoat); + Name = "FormMotorBoat"; + StartPosition = FormStartPosition.CenterScreen; + Text = "Моторная лодка"; + ((System.ComponentModel.ISupportInitialize)pictureBoxMotorBoat).EndInit(); + ResumeLayout(false); + } + + #endregion + + private PictureBox pictureBoxMotorBoat; + private Button buttonCreateMotorBoat; + private Button buttonUp; + private Button buttonDown; + private Button buttonLeft; + private Button buttonRight; + } +} \ No newline at end of file diff --git a/ProjectMotorBoat/ProjectMotorBoat/FormMotorBoat.cs b/ProjectMotorBoat/ProjectMotorBoat/FormMotorBoat.cs new file mode 100644 index 0000000..f0b9f96 --- /dev/null +++ b/ProjectMotorBoat/ProjectMotorBoat/FormMotorBoat.cs @@ -0,0 +1,92 @@ +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 ProjectMotorBoat +{ + public partial class FormMotorBoat : Form + { + private DrawningMotorBoat? _drawningMotorBoat; + + public FormMotorBoat() + { + InitializeComponent(); + } + + private void Draw() + { + if (_drawningMotorBoat == null) + { + return; + } + Bitmap bmp = new(pictureBoxMotorBoat.Width, + pictureBoxMotorBoat.Height); + Graphics gr = Graphics.FromImage(bmp); + _drawningMotorBoat.DrawTransport(gr); + pictureBoxMotorBoat.Image = bmp; + } + + private void ButtonCreateMotorBoat_Click(object sender, EventArgs e) + { + /// + /// Обработка нажатия кнопки "Создать" + /// + /// + /// + Random random = new(); + _drawningMotorBoat = new DrawningMotorBoat(); + _drawningMotorBoat.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))); + _drawningMotorBoat.SetPictureSize(pictureBoxMotorBoat.Width, pictureBoxMotorBoat.Height); + _drawningMotorBoat.SetPosition(random.Next(10, 100), random.Next(10, 100)); + + Draw(); + } + + /// + /// Перемещение объекта по форме (нажатие кнопок навигации) + /// + /// + /// + private void ButtonMove_Click(object sender, EventArgs e) + { + if (_drawningMotorBoat == null) + { + return; + } + string name = ((Button)sender)?.Name ?? string.Empty; + bool result = false; + switch (name) + { + case "buttonUp": + result = + _drawningMotorBoat.MoveTransport(DirectionType.Up); + break; + case "buttonDown": + result = + _drawningMotorBoat.MoveTransport(DirectionType.Down); + break; + case "buttonLeft": + result = + _drawningMotorBoat.MoveTransport(DirectionType.Left); + break; + case "buttonRight": + result = + _drawningMotorBoat.MoveTransport(DirectionType.Right); + break; + } + if (result) + { + Draw(); + } + } + } +} diff --git a/ProjectMotorBoat/ProjectMotorBoat/Form1.resx b/ProjectMotorBoat/ProjectMotorBoat/FormMotorBoat.resx similarity index 93% rename from ProjectMotorBoat/ProjectMotorBoat/Form1.resx rename to ProjectMotorBoat/ProjectMotorBoat/FormMotorBoat.resx index 1af7de1..af32865 100644 --- a/ProjectMotorBoat/ProjectMotorBoat/Form1.resx +++ b/ProjectMotorBoat/ProjectMotorBoat/FormMotorBoat.resx @@ -1,17 +1,17 @@  - diff --git a/ProjectMotorBoat/ProjectMotorBoat/Program.cs b/ProjectMotorBoat/ProjectMotorBoat/Program.cs index 4c389e9..30a5090 100644 --- a/ProjectMotorBoat/ProjectMotorBoat/Program.cs +++ b/ProjectMotorBoat/ProjectMotorBoat/Program.cs @@ -11,7 +11,7 @@ namespace ProjectMotorBoat // 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 FormMotorBoat()); } } } \ No newline at end of file diff --git a/ProjectMotorBoat/ProjectMotorBoat/ProjectMotorBoat.csproj b/ProjectMotorBoat/ProjectMotorBoat/ProjectMotorBoat.csproj index 4406db2..393901b 100644 --- a/ProjectMotorBoat/ProjectMotorBoat/ProjectMotorBoat.csproj +++ b/ProjectMotorBoat/ProjectMotorBoat/ProjectMotorBoat.csproj @@ -8,5 +8,20 @@ enable + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + diff --git a/ProjectMotorBoat/ProjectMotorBoat/Properties/Resources.Designer.cs b/ProjectMotorBoat/ProjectMotorBoat/Properties/Resources.Designer.cs new file mode 100644 index 0000000..f683df7 --- /dev/null +++ b/ProjectMotorBoat/ProjectMotorBoat/Properties/Resources.Designer.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace ProjectMotorBoat.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("ProjectMotorBoat.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 down { + get { + object obj = ResourceManager.GetObject("down", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap left { + get { + object obj = ResourceManager.GetObject("left", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap right { + get { + object obj = ResourceManager.GetObject("right", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap up { + get { + object obj = ResourceManager.GetObject("up", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/ProjectMotorBoat/ProjectMotorBoat/Properties/Resources.resx b/ProjectMotorBoat/ProjectMotorBoat/Properties/Resources.resx new file mode 100644 index 0000000..3f7df60 --- /dev/null +++ b/ProjectMotorBoat/ProjectMotorBoat/Properties/Resources.resx @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + ..\Resources\up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/ProjectMotorBoat/ProjectMotorBoat/Resources/down.png b/ProjectMotorBoat/ProjectMotorBoat/Resources/down.png new file mode 100644 index 0000000..b1e74ad Binary files /dev/null and b/ProjectMotorBoat/ProjectMotorBoat/Resources/down.png differ diff --git a/ProjectMotorBoat/ProjectMotorBoat/Resources/left.png b/ProjectMotorBoat/ProjectMotorBoat/Resources/left.png new file mode 100644 index 0000000..2ec2c67 Binary files /dev/null and b/ProjectMotorBoat/ProjectMotorBoat/Resources/left.png differ diff --git a/ProjectMotorBoat/ProjectMotorBoat/Resources/right.png b/ProjectMotorBoat/ProjectMotorBoat/Resources/right.png new file mode 100644 index 0000000..9597382 Binary files /dev/null and b/ProjectMotorBoat/ProjectMotorBoat/Resources/right.png differ diff --git a/ProjectMotorBoat/ProjectMotorBoat/Resources/up.png b/ProjectMotorBoat/ProjectMotorBoat/Resources/up.png new file mode 100644 index 0000000..8fceff9 Binary files /dev/null and b/ProjectMotorBoat/ProjectMotorBoat/Resources/up.png differ