public void render(Graphics2D g2d) { g2d.setColor(color); GameMethods.setOpacity(g2d, opacity); g2d.fillOval((int) x, (int) y, diameter, diameter); }
public void render(Graphics2D g2d) { g2d.setColor(Color.white); GameMethods.setOpacity(g2d, opacity); g2d.fillRect(0, 0, game.getWidth(), game.getHeight()); }