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
|
|
@ -13,13 +13,7 @@ public class Wall extends GameObject {
|
|||
|
||||
@Override
|
||||
public void draw(Graphics2D g2d, int w, Master master) {
|
||||
int xAbs = (int) getWorldCoords(position.x, true);
|
||||
int yAbs = (int) getWorldCoords(position.y, false);
|
||||
int sizeXAbs = (int) getWorldCoords(size.x, true);
|
||||
int sizeYAbs = (int) getWorldCoords(size.y, false);
|
||||
|
||||
g2d.setPaint(Color.BLACK);
|
||||
g2d.fillRect(xAbs, yAbs, sizeXAbs, sizeYAbs);
|
||||
drawRect(g2d, w);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue