summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/screens
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-23 22:51:50 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-23 22:51:50 +0100
commit1fba1714173bf15e5d160eff81b1e8767f89dd5e (patch)
treed0a03889c1c14615aecb2ad13e3a2474d9e13ea4 /core/src/ch/asynk/tankontank/screens
parent0fbe2d7d1dd29762d48c06e7908df6d0b9029cd2 (diff)
downloadRustAndDust-1fba1714173bf15e5d160eff81b1e8767f89dd5e.zip
RustAndDust-1fba1714173bf15e5d160eff81b1e8767f89dd5e.tar.gz
GameScreen: add FPS on DEBUG
Diffstat (limited to 'core/src/ch/asynk/tankontank/screens')
-rw-r--r--core/src/ch/asynk/tankontank/screens/GameScreen.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/GameScreen.java b/core/src/ch/asynk/tankontank/screens/GameScreen.java
index e044262..efade05 100644
--- a/core/src/ch/asynk/tankontank/screens/GameScreen.java
+++ b/core/src/ch/asynk/tankontank/screens/GameScreen.java
@@ -216,6 +216,8 @@ public class GameScreen implements Screen
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);
hudBatch.end();
if (DEBUG) {