mirror of
https://github.com/Noratrieb/Java2DGame.git
synced 2026-01-14 22:15:01 +01:00
coordinates change
This commit is contained in:
parent
843d30eb47
commit
47ec2337a4
9 changed files with 108 additions and 38 deletions
|
|
@ -43,7 +43,6 @@ public class Turret extends GameObject {
|
|||
|
||||
@Override
|
||||
public void draw(Graphics2D g2d, int w, Master master) {
|
||||
//TODO draw should be draw only for better everything
|
||||
h = w / 16 * 9;
|
||||
g2d.setPaint(mainColor);
|
||||
int xAbs = battleShip.getWorldCoordsFromLocal(position.x, true);
|
||||
|
|
@ -75,6 +74,8 @@ public class Turret extends GameObject {
|
|||
}
|
||||
}
|
||||
g2d.rotate(-rotation, xCenterAbs, yCenterAbs);
|
||||
|
||||
g2d.setStroke(new BasicStroke());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue