diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/screens/GameScreen.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/GameScreen.java b/core/src/ch/asynk/tankontank/screens/GameScreen.java index 99cfaac..2eb3810 100644 --- a/core/src/ch/asynk/tankontank/screens/GameScreen.java +++ b/core/src/ch/asynk/tankontank/screens/GameScreen.java @@ -219,6 +219,15 @@ public class GameScreen implements Screen hudBatch.begin(); ctrl.hud.draw(hudBatch); hudBatch.end(); + + if (DEBUG) { + Gdx.gl.glEnable(GL20.GL_BLEND); + debugShapes.setAutoShapeType(true); + debugShapes.setProjectionMatrix(hudCam.combined); + debugShapes.begin(); + ctrl.hud.drawDebug(debugShapes); + debugShapes.end(); + } } @Override |