diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-05 17:45:31 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-05 17:45:31 +0100 |
commit | 9faa5b5c7b49064766bf1fa57509e7ecf1b40981 (patch) | |
tree | 6441a61270e38ac43f9ad7d2277fafb9d878843f /core/src/ch | |
parent | 7f166ba58df0d9fd979c770bb2113e0e9d5544a4 (diff) | |
download | RustAndDust-9faa5b5c7b49064766bf1fa57509e7ecf1b40981.zip RustAndDust-9faa5b5c7b49064766bf1fa57509e7ecf1b40981.tar.gz |
GameCamera: imporve debug
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/screens/GameCamera.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/GameCamera.java b/core/src/ch/asynk/tankontank/screens/GameCamera.java index c76243b..eb54b1a 100644 --- a/core/src/ch/asynk/tankontank/screens/GameCamera.java +++ b/core/src/ch/asynk/tankontank/screens/GameCamera.java @@ -139,8 +139,9 @@ public class GameCamera extends OrthographicCamera public void debug() { - System.err.println(String.format("VIEWPORT: %dx%d", (int)viewportWidth, (int)viewportHeight)); - System.err.println(String.format(" SCREEN: %d;%d %dx%d", (int)window.x, (int)window.y, (int)window.width, (int)window.height)); + System.err.println(String.format(" VIEWPORT: %dx%d * %.2f -> %dx%d", (int)viewportWidth, (int)viewportHeight, + zoom, (int)(viewportWidth * zoom), (int)(viewportHeight * zoom))); + System.err.println(String.format(" WINDOW: %d;%d %dx%d", (int)window.x, (int)window.y, (int)window.width, (int)window.height)); System.err.println("MATRIX:" + combined.toString()); } |