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