From 4d27a2671a754565fae3d371c090e50b6224a089 Mon Sep 17 00:00:00 2001 From: Matt Low Date: Thu, 22 Nov 2018 20:52:20 +0400 Subject: [PATCH] Cleanup Brick.render() --- core/src/com/me/brickbuster/entity/Brick.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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,