summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-05-31 12:10:35 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-05-31 12:10:35 +0200
commit05e7f467bd6c062a4b658d3a60bbadee804c7efc (patch)
tree37c2c2a7f94a51f52a2340eb24f3c6491741ffd6 /core/src/ch
parenta0b0ae5396df26c1a65081b093709696a0c0166e (diff)
downloadgdx-boardgame-05e7f467bd6c062a4b658d3a60bbadee804c7efc.zip
gdx-boardgame-05e7f467bd6c062a4b658d3a60bbadee804c7efc.tar.gz
Camera : fix translate
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/Camera.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Camera.java b/core/src/ch/asynk/gdx/boardgame/Camera.java
index d72f15c..322c6d5 100644
--- a/core/src/ch/asynk/gdx/boardgame/Camera.java
+++ b/core/src/ch/asynk/gdx/boardgame/Camera.java
@@ -153,7 +153,7 @@ public class Camera extends OrthographicCamera
{
float deltaX = (dx * zoom * widthFactor);
float deltaY = (dy * zoom * heightFactor);
- translate(deltaX, -deltaY, 0);
+ translate(-deltaX, deltaY, 0);
clampPosition();
update(true);
}