From 1ee5a5a36cb34b53b6c84f44b56ee5a8c3077413 Mon Sep 17 00:00:00 2001 From: BlueNutterfly Date: Mon, 12 Nov 2018 18:13:48 +0400 Subject: [PATCH] Allow ball to fall "out" of screen --- core/src/com/me/brickbuster/entity/Ball.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/me/brickbuster/entity/Ball.java b/core/src/com/me/brickbuster/entity/Ball.java index 5abf268..44d91ff 100644 --- a/core/src/com/me/brickbuster/entity/Ball.java +++ b/core/src/com/me/brickbuster/entity/Ball.java @@ -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; }