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