Доп. задание
This commit is contained in:
parent
8854e0fda1
commit
fb8fb88b91
@ -21,10 +21,10 @@ namespace Artilleries
|
|||||||
Random rnd = new();
|
Random rnd = new();
|
||||||
_artillery = new DrawingArtillery();
|
_artillery = new DrawingArtillery();
|
||||||
_artillery.Init(rnd.Next(100, 300), rnd.Next(1000, 2000), Color.FromArgb(rnd.Next(0, 256), rnd.Next(0, 256), rnd.Next(0, 256)));
|
_artillery.Init(rnd.Next(100, 300), rnd.Next(1000, 2000), Color.FromArgb(rnd.Next(0, 256), rnd.Next(0, 256), rnd.Next(0, 256)));
|
||||||
_artillery.SetPosition(rnd.Next(10, 100), rnd.Next(10, 100), pictureBoxArtilleries.Width, pictureBoxArtilleries.Height);
|
_artillery.SetPosition(rnd.Next(pictureBoxArtilleries.Width - 161, pictureBoxArtilleries.Width - 81), rnd.Next(10, 100), pictureBoxArtilleries.Width, pictureBoxArtilleries.Height);
|
||||||
SpeedStatusLabel.Text = $"Ñêîðîñòü: {_artillery.Artillery.Speed}";
|
SpeedStatusLabel.Text = $"Скорость: {_artillery.Artillery.Speed}";
|
||||||
WeightStatusLabel.Text = $"Âåñ: {_artillery.Artillery.Weight}";
|
WeightStatusLabel.Text = $"Вес: {_artillery.Artillery.Weight}";
|
||||||
ColorStatusLabel.Text = $"Öâåò: {_artillery.Artillery.BodyColor.Name}";
|
ColorStatusLabel.Text = $"Цвет: {_artillery.Artillery.BodyColor.Name}";
|
||||||
Draw();
|
Draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user