Small fix
This commit is contained in:
parent
cadb01023b
commit
4b488b1a21
@ -91,11 +91,11 @@ public class DrawingShip {
|
||||
return;
|
||||
}
|
||||
g.setColor(ship.getBodyColor() != null ? ship.getBodyColor() : Color.BLACK);
|
||||
drawingDecks.draw(g, (int) _startPosX, (int) _startPosY, _shipWidth, _shipHeight);
|
||||
int xPoly[] = {(int)_startPosX, (int)_startPosX + 80, (int)_startPosX + 70, (int)_startPosX + 10};
|
||||
int yPoly[] = {(int)_startPosY + 10, (int)_startPosY + 10, (int)_startPosY + 30, (int)_startPosY + 30};
|
||||
g.fillPolygon(xPoly, yPoly, 4);
|
||||
g.fillRect((int)_startPosX + 30, (int)_startPosY, 20, 10);
|
||||
drawingDecks.draw(g, (int) _startPosX, (int) _startPosY, _shipWidth, _shipHeight);
|
||||
}
|
||||
|
||||
public void changeBorders(int width, int height)
|
||||
|
Loading…
x
Reference in New Issue
Block a user