laba7: chipi chipi chapa chapa maybe ready

This commit is contained in:
bulatova_karina 2023-12-19 22:31:31 +03:00
parent 4455cd1ae6
commit 27368347ff

View File

@ -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++;