From 0a071e40d2146ae1131ca82ab5a78a8361d8c28f Mon Sep 17 00:00:00 2001 From: Matt Low Date: Sun, 11 Nov 2018 18:20:21 +0400 Subject: [PATCH] Render bricks first --- core/src/com/me/brickbuster/BrickBuster.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/com/me/brickbuster/BrickBuster.java b/core/src/com/me/brickbuster/BrickBuster.java index 5859a9e..238f1f9 100644 --- a/core/src/com/me/brickbuster/BrickBuster.java +++ b/core/src/com/me/brickbuster/BrickBuster.java @@ -45,12 +45,12 @@ public class BrickBuster extends ApplicationAdapter { Gdx.gl.glClearColor(0.5f,1,1,1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); - ball.render(); - paddle.render(); - for (Block block : blocks) { block.render(); } + + ball.render(); + paddle.render(); } public void update(float dt) {