Render bricks first
This commit is contained in:
parent
8f788851b2
commit
0a071e40d2
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user