mirror of
https://github.com/Noratrieb/Java2DGame.git
synced 2026-01-14 14:05:01 +01:00
draw method signature change
This commit is contained in:
parent
4356d02a66
commit
adab1a4b7c
16 changed files with 34 additions and 43 deletions
|
|
@ -33,7 +33,8 @@ public class Turret extends GameObject {
|
|||
|
||||
setRenderer(new CustomRenderer(mainColor, this) {
|
||||
@Override
|
||||
public void draw(Graphics2D g2d) {
|
||||
public void draw() {
|
||||
Graphics2D g2d = re.getG2d();
|
||||
g2d.setPaint(mainColor);
|
||||
Vector2D abs = getWorldCoordsFromLocal(position);
|
||||
int sizeAbs = (int) Coordinates.getWorldCoordinates(object.getSize()).x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue