Cleanup Brick.render()
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user