Only launch the ball if not already playing

This commit is contained in:
Matt Low 2018-11-11 15:09:51 +04:00
parent 79f4334cd7
commit ec28b8bd99

View File

@ -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();
}