Lab1: правки в генерации случайного кол-ва двигателей
This commit is contained in:
parent
08e1a6549e
commit
72e1051113
@ -24,7 +24,7 @@ namespace AirBomber
|
||||
_drawningAirBomber = new DrawningAirBomber();
|
||||
_drawningAirBomber.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)),
|
||||
random.Next(1, 7) * 2, pictureBoxAirBomber.Width, pictureBoxAirBomber.Height);
|
||||
random.Next(1, 4) * 2, pictureBoxAirBomber.Width, pictureBoxAirBomber.Height);
|
||||
|
||||
_drawningAirBomber.SetPosition(random.Next(10, 100), random.Next(10, 100));
|
||||
Draw();
|
||||
|
Loading…
Reference in New Issue
Block a user