From ec28b8bd99cc03a80f159a333c98230b3920fccf Mon Sep 17 00:00:00 2001 From: Matt Low Date: Sun, 11 Nov 2018 15:09:51 +0400 Subject: [PATCH] Only launch the ball if not already playing --- core/src/com/me/brickbuster/BrickBuster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/me/brickbuster/BrickBuster.java b/core/src/com/me/brickbuster/BrickBuster.java index f284d8c..380b8b1 100644 --- a/core/src/com/me/brickbuster/BrickBuster.java +++ b/core/src/com/me/brickbuster/BrickBuster.java @@ -56,7 +56,7 @@ public class BrickBuster extends ApplicationAdapter { } public void update(float dt) { - if (Gdx.input.justTouched()) { + if (Gdx.input.justTouched() && !isPlaying()) { playing = true; ball.launch(); }