Delete bricks that go below the bottom of the play field
This commit is contained in:
@ -78,6 +78,10 @@ public class Brick extends Entity implements PhysicsBody, CollisionListener {
|
||||
hit();
|
||||
hitByBall = false;
|
||||
}
|
||||
|
||||
if (getY() - BRICK_HEIGHT < 0) {
|
||||
delete();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user