diff --git a/core/src/com/me/brickbuster/entity/Brick.java b/core/src/com/me/brickbuster/entity/Brick.java index 6211ede..6562b6b 100644 --- a/core/src/com/me/brickbuster/entity/Brick.java +++ b/core/src/com/me/brickbuster/entity/Brick.java @@ -42,9 +42,7 @@ public class Brick extends Entity implements PhysicsBody, CollisionListener { @Override public void render(SpriteBatch sb, ShapeRenderer sr) { sb.setColor(type.getColor()); - float x = pos.x - BRICK_WIDTH/2; - float y = pos.y - BRICK_HEIGHT/2; - sb.draw(region, x, y, + sb.draw(region, pos.x - BRICK_WIDTH/2, pos.y - BRICK_HEIGHT/2, BRICK_WIDTH/2, BRICK_HEIGHT/2, BRICK_WIDTH, BRICK_HEIGHT, 1f, 1f,