diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-09-13 11:51:01 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-09-13 11:51:01 +0200 |
commit | b4fe20c457a33c78a52180d0ca07dd5ccda3789a (patch) | |
tree | c8c230cf9265d838cbee2977eefe7732bd40fe0f /core/src/ch/asynk | |
parent | 53a9ce3f19632f4e68507330e4e80822e969bea7 (diff) | |
download | gdx-boardgame-b4fe20c457a33c78a52180d0ca07dd5ccda3789a.zip gdx-boardgame-b4fe20c457a33c78a52180d0ca07dd5ccda3789a.tar.gz |
screens/GameCamera.java -> engine/Camera.java
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/zproject/engine/Camera.java (renamed from core/src/ch/asynk/zproject/screens/GameCamera.java) | 6 | ||||
-rw-r--r-- | core/src/ch/asynk/zproject/screens/GameScreen.java | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/core/src/ch/asynk/zproject/screens/GameCamera.java b/core/src/ch/asynk/zproject/engine/Camera.java index 54b1f82..a3e13e1 100644 --- a/core/src/ch/asynk/zproject/screens/GameCamera.java +++ b/core/src/ch/asynk/zproject/engine/Camera.java @@ -1,4 +1,4 @@ -package ch.asynk.zproject.screens; +package ch.asynk.zproject.engine; import com.badlogic.gdx.graphics.glutils.HdpiUtils; import com.badlogic.gdx.graphics.OrthographicCamera; @@ -8,7 +8,7 @@ import com.badlogic.gdx.math.Vector3; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.math.Matrix4; -public class GameCamera extends OrthographicCamera +public class Camera extends OrthographicCamera { private static final float ZEROF = 0.01f; @@ -31,7 +31,7 @@ public class GameCamera extends OrthographicCamera private int hudBottom; private boolean hudInBoard; - public GameCamera(int padding, float boardWidth, float boardHeight, float zoomMax, float zoomMin, boolean hudInBoard) + public Camera(int padding, float boardWidth, float boardHeight, float zoomMax, float zoomMin, boolean hudInBoard) { super(boardWidth, boardHeight); this.boardWidth = boardWidth; diff --git a/core/src/ch/asynk/zproject/screens/GameScreen.java b/core/src/ch/asynk/zproject/screens/GameScreen.java index 30e6b67..a784acc 100644 --- a/core/src/ch/asynk/zproject/screens/GameScreen.java +++ b/core/src/ch/asynk/zproject/screens/GameScreen.java @@ -17,6 +17,7 @@ import com.badlogic.gdx.math.Vector3; import ch.asynk.zproject.ZProject; import ch.asynk.zproject.GameHud; import ch.asynk.zproject.GameBoard; +import ch.asynk.zproject.engine.Camera; public class GameScreen implements Screen { @@ -29,7 +30,7 @@ public class GameScreen implements Screen private final ZProject zproject; private final GameHud hud; private final GameBoard board; - private final GameCamera camera; + private final Camera camera; private final SpriteBatch batch; private ShapeRenderer debugShapes = null; @@ -47,7 +48,7 @@ public class GameScreen implements Screen this.hud = new GameHud(zproject.assets); this.board = new GameBoard(zproject.assets); this.batch = new SpriteBatch(); - this.camera = new GameCamera(10, board.getWidth(), board.getHeight(), 1.0f, 0.3f, false); + this.camera = new Camera(10, board.getWidth(), board.getHeight(), 1.0f, 0.3f, false); Gdx.input.setInputProcessor(getMultiplexer(this)); this.paused = false; this.inputDelay = 0f; |