Render bricks first
This commit is contained in:
		@ -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) {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user