Allow ball to fall "out" of screen
This commit is contained in:
parent
83e270062b
commit
1ee5a5a36c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user