Only launch the ball if not already playing
This commit is contained in:
parent
79f4334cd7
commit
ec28b8bd99
@ -56,7 +56,7 @@ public class BrickBuster extends ApplicationAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void update(float dt) {
|
public void update(float dt) {
|
||||||
if (Gdx.input.justTouched()) {
|
if (Gdx.input.justTouched() && !isPlaying()) {
|
||||||
playing = true;
|
playing = true;
|
||||||
ball.launch();
|
ball.launch();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user