Render bricks first

This commit is contained in:
Matt Low 2018-11-11 18:20:21 +04:00
parent 8f788851b2
commit 0a071e40d2

View File

@ -45,12 +45,12 @@ public class BrickBuster extends ApplicationAdapter {
Gdx.gl.glClearColor(0.5f,1,1,1); Gdx.gl.glClearColor(0.5f,1,1,1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
ball.render();
paddle.render();
for (Block block : blocks) { for (Block block : blocks) {
block.render(); block.render();
} }
ball.render();
paddle.render();
} }
public void update(float dt) { public void update(float dt) {