diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-09 23:37:09 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-09 23:37:09 +0100 |
commit | fdf816a560b0359e7771de1333887ca0ec70fa24 (patch) | |
tree | 9e3843a4d75750f606708474e04038d6e3226aa1 /core/src/ch/asynk/tankontank/screens | |
parent | 9dcc8e25fb9fafbe5ff3bcb5dc0b35f723771bc5 (diff) | |
download | RustAndDust-fdf816a560b0359e7771de1333887ca0ec70fa24.zip RustAndDust-fdf816a560b0359e7771de1333887ca0ec70fa24.tar.gz |
GameScreen,Hud: hud draw FPS on DEBUG
Diffstat (limited to 'core/src/ch/asynk/tankontank/screens')
-rw-r--r-- | core/src/ch/asynk/tankontank/screens/GameScreen.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/GameScreen.java b/core/src/ch/asynk/tankontank/screens/GameScreen.java index aa844c8..8d7a8b3 100644 --- a/core/src/ch/asynk/tankontank/screens/GameScreen.java +++ b/core/src/ch/asynk/tankontank/screens/GameScreen.java @@ -208,9 +208,7 @@ public class GameScreen implements Screen hudCam.update(); hudBatch.setProjectionMatrix(hudCam.combined); hudBatch.begin(); - ctrl.hud.draw(hudBatch); - if (DEBUG) - game.skin.getFont("default-font").draw(hudBatch, String.format("FPS: %d", Gdx.graphics.getFramesPerSecond()), 80, 25); + ctrl.hud.draw(hudBatch, DEBUG); hudBatch.end(); if (DEBUG) { |