From c9fda66879f5f29d86976dfa625206a5c33de002 Mon Sep 17 00:00:00 2001 From: Matt Low Date: Sat, 10 Nov 2018 21:40:13 +0400 Subject: [PATCH] Add update loop --- core/src/com/me/brickbuster/BrickBuster.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/src/com/me/brickbuster/BrickBuster.java b/core/src/com/me/brickbuster/BrickBuster.java index f5639fb..c23d84a 100644 --- a/core/src/com/me/brickbuster/BrickBuster.java +++ b/core/src/com/me/brickbuster/BrickBuster.java @@ -18,11 +18,12 @@ public class BrickBuster extends ApplicationAdapter { @Override public void create () { this.shapeRenderer = new ShapeRenderer(); - } @Override public void render () { + update(Gdx.graphics.getDeltaTime()); + Gdx.gl.glClearColor(0.5f,1,1,1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); this.shapeRenderer.begin(ShapeType.Filled); @@ -31,7 +32,12 @@ public class BrickBuster extends ApplicationAdapter { this.shapeRenderer.end(); } - + + @Override + public void update(float dt) { + + } + @Override public void dispose () {