public static void draw(ShapeRenderer shaperenderer) { shaperenderer.setColor(Color.RED); shaperenderer.begin(ShapeRenderer.ShapeType.Line); shaperenderer.rect(SpriteHome.getPosition().x + 24, SpriteHome.getPosition().y + 130, 64, 60); shaperenderer.circle( Ball.getPosition().x + Ball.getSize().x / 2, Ball.getPosition().y + Ball.getSize().x / 2, Ball.getSize().x / 2); shaperenderer.circle( SpriteHome.getPosition().x + 16.8f + (128.8f / 2), SpriteHome.getPosition().y + 0 + (128.8f / 2), 128.8f / 2); shaperenderer.circle( SpriteHome.getPosition().x + 16.8f + (128.8f / 2), SpriteHome.getPosition().y + (161 - 128.8f) + (128.8f / 2), 128.8f / 2); shaperenderer.end(); }