laba7: chipi chipi chapa chapa maybe ready
This commit is contained in:
parent
4455cd1ae6
commit
27368347ff
@ -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