fix: inversed zoomIn and zoomOut

This commit is contained in:
Laureηt 2021-05-27 11:07:49 +02:00
parent b76cb1d159
commit e34894ab47

View file

@ -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