PIbd-22. Bulatova K.R. LabWork_07 #13
@ -135,7 +135,9 @@ namespace WarmlyShip.Generics
|
||||
if (ship != null)
|
||||
{
|
||||
int width = _pictureWidth / _placeSizeWidth;
|
||||
ship.SetPosition((width - 1 - (i % width)) * _placeSizeWidth, i / width * _placeSizeHeight);
|
||||
ship._pictureWidth = _pictureWidth;
|
||||
ship._pictureHeight = _pictureHeight;
|
||||
ship.SetPosition(i % width * _placeSizeWidth, i / width * _placeSizeHeight);
|
||||
ship.DrawTransport(g);
|
||||
}
|
||||
i++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user