summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-05 17:45:31 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-05 17:45:31 +0100
commit9faa5b5c7b49064766bf1fa57509e7ecf1b40981 (patch)
tree6441a61270e38ac43f9ad7d2277fafb9d878843f /core
parent7f166ba58df0d9fd979c770bb2113e0e9d5544a4 (diff)
downloadRustAndDust-9faa5b5c7b49064766bf1fa57509e7ecf1b40981.zip
RustAndDust-9faa5b5c7b49064766bf1fa57509e7ecf1b40981.tar.gz
GameCamera: imporve debug
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/screens/GameCamera.java5
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());
}