Allow ball to fall "out" of screen
This commit is contained in:
@ -77,7 +77,7 @@ public class Ball extends Entity {
|
||||
Utils.reflect(direction, BrickBuster.VERTICAL_EDGE);
|
||||
} else if (new_pos.y + RADIUS > BrickBuster.HEIGHT) {
|
||||
Utils.reflect(direction, BrickBuster.HORIZONTAL_EDGE);
|
||||
} else if (new_pos.y - RADIUS < 0) {
|
||||
} else if (new_pos.y + RADIUS < 0) {
|
||||
isDead = true;
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user