fix: inversed zoomIn and zoomOut
This commit is contained in:
parent
b76cb1d159
commit
e34894ab47
|
@ -135,10 +135,10 @@ public class GameScreen extends BaseScreen implements InputProcessor {
|
||||||
}
|
}
|
||||||
|
|
||||||
// camera zoom using keys
|
// camera zoom using keys
|
||||||
if (Gdx.input.isKeyPressed(SagittariusGame.zoomInKey)) {
|
if (Gdx.input.isKeyPressed(SagittariusGame.zoomOutKey)) {
|
||||||
gameCam.zoom += dt;
|
gameCam.zoom += dt;
|
||||||
}
|
}
|
||||||
if (Gdx.input.isKeyPressed(SagittariusGame.zoomOutKey)) {
|
if (Gdx.input.isKeyPressed(SagittariusGame.zoomInKey)) {
|
||||||
gameCam.zoom -= dt;
|
gameCam.zoom -= dt;
|
||||||
}
|
}
|
||||||
// clamp zoom
|
// clamp zoom
|
||||||
|
|
Loading…
Reference in a new issue