diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-09 01:29:51 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-09 01:29:51 +0100 |
commit | 6d53fc7983a13b65aee3ddd4774ff469fa3106c5 (patch) | |
tree | 1865f2d60c69140451a6b49ef485795bf062f836 /core/src | |
parent | 70fdcabbc7d07581e0c684daddcd5ea2dfbe14cb (diff) | |
download | RustAndDust-6d53fc7983a13b65aee3ddd4774ff469fa3106c5.zip RustAndDust-6d53fc7983a13b65aee3ddd4774ff469fa3106c5.tar.gz |
GameScreen: enable Hud debug on DEBUG
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 |