mirror of
https://github.com/Noratrieb/Java2DGame.git
synced 2026-01-15 06:25:02 +01:00
renderer
This commit is contained in:
parent
4e95ce139c
commit
cfbe965ec5
17 changed files with 241 additions and 64 deletions
|
|
@ -47,10 +47,11 @@ public class Turret extends GameObject {
|
|||
|
||||
g2d.fillOval((int) abs.x, (int) abs.y, sizeAbs, sizeAbs);
|
||||
|
||||
g2d.setStroke(new BasicStroke((int) Coordinates.getWorldCoordinates(new Vector2D(size.x / barrelAmount / BARREL_THICKNESS, 0)).x, BasicStroke.CAP_BUTT,
|
||||
BasicStroke.JOIN_BEVEL));
|
||||
|
||||
|
||||
//BARRELS---------------------------------------
|
||||
g2d.setStroke(new BasicStroke((int) Coordinates.getWorldCoordinates(new Vector2D(size.x / barrelAmount / BARREL_THICKNESS, 0)).x, BasicStroke.CAP_BUTT,
|
||||
BasicStroke.JOIN_BEVEL));
|
||||
|
||||
g2d.setPaint(Color.BLACK);
|
||||
int barrelSpacing = sizeAbs / (barrelAmount + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue